Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: simulate long running time

Tags:

android

I guess everybody experienced his app work great when you try it for a quick 30 minutes. But when an app sits in the background of the device for a day or so, you get your NullPointerExceptions and things don't work as expected because the Garbage Collector stole your stuff. Is there any way to simulate an app running for a long time in the background?

like image 698
fweigl Avatar asked Jul 26 '13 11:07

fweigl


1 Answers

Settings -> Developer options -> Background process limit -> At most 1 process.

Don't forget to set it back when you're done having fun. Cheers.

like image 100
Bogdan Zurac Avatar answered Oct 17 '22 00:10

Bogdan Zurac