开发者

How to emulate onLowMemory()?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜