模拟低电量及放大器; Android中低端内存 [英] Simulate low battery & low memory in Android

查看:224
本文介绍了模拟低电量及放大器; Android中低端内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了生成我需要了解如何生成电池电量低和低内存通知中断编程。任何一个可以请提供您的suggestions.I我意识到意图的。

In order to generate the notifications i need to know about how to generate the low battery and low memory interrupts programmatically. Can any one please provide your suggestions.I am aware of Intents.

推荐答案

在Android模拟器,你可以的连接到模拟器控制台并使用功率命令。

On the Android Emulator you can set the power status by connecting to the Emulator console and using the power command.

至于内存不足的话,你只需要确保您的应用程序可以处理被杀害无预警当它在后台运行。测试这是极少数的情况下,实际上要求对Android的任务管理器中的一个,或者如果你运行的是Android 2.2,你可以通过设置杀应用程序。

As far as low memory goes, you just need to make sure that your application can handle being killed without warning when it is in the background. Testing this is one of the very few cases that actually call for a Task Manager on Android, or if you're running Android 2.2 you can kill applications via Settings.

<一个href="http://stackoverflow.com/questions/1483047/how-do-you-simulate-low-memory-in-the-android-emulator">There为减少可用内存,但我认为他们是不必要的应用程序的方式。

There are ways of reducing the memory available to applications but I think they're unnecessary.

这篇关于模拟低电量及放大器; Android中低端内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆