I have put some instructions in onLowMemory() callback and want to test the same. Is there a "direct" way to test onLowMemory function of the application subclass?
Or will I have to just overload t开发者_开发技巧he phone by starting many apps and doing memory intensive tasks?
Thanks.
You could reduce the amount of ram available in the emulator.
http://developer.android.com/guide/developing/tools/avd.html#hardwareopts
精彩评论