Set the sys.setswitchinterval() to the given interval. Defines a minimum interval for Android systems to prevent the system from hanging.
test.support/setswitchinterval
setswitchinterval