开发者

How to emulate onLowMemory()?

开发者 https://www.devze.com 2022-12-31 15:00 出处:网络
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?

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

0

精彩评论

暂无评论...
验证码 换一张
取 消