开发者

Memory simulation in android

开发者 https://www.devze.com 2023-01-16 21:24 出处:网络
I want to simulate Memory in android programmatically..开发者_开发问答That is i want to generate an low memory alert when i click on button in my activity..is there any way to do this..?

I want to simulate Memory in android programmatically..开发者_开发问答That is i want to generate an low memory alert when i click on button in my activity..is there any way to do this..? is there any way to limit memory in android..?

if u had any ideas please let me know..

Thanks in advance..


While creating an AVD did you notice that under Hardware if you click add button you can set a property called Max VM application heap size. Does setting a lower heap size help in your case to bring up OOM error easily?

0

精彩评论

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