How to test the low power condition on Android
I wondered if anyone had any ideas about how to simulate low power conditions on And开发者_如何转开发roid (ie the pop-up notification that occurs) on the G1, say.
The adb am command lets you broadcast intents but, I think, maybe not system ones. Anyway,
$ am broadcast -a android.intent.action.BATTERY_LOW
Broadcasting: Intent { act=android.intent.action.BATTERY_LOW }doesn't help.
Any ideas? Do the performance test cases help?
Thanks in advance.... Ewan
Device Power in the Android Emulator lets you set the remaining charge.
精彩评论