0

My question has two parts:

a) When the battery level in android device reaches 0%, is it programmatically(forcefully) made to shutdown at this moment?

b) If yes, then can anyone tell me the particular battery intent(for 0% case) which is broadcast that forces the device shutdown when device battery level = 0% ?

Basher51
  • 1,319
  • 1
  • 17
  • 28
  • 1
    You realize 0% means 0%, right? Like, there's no (none, nada, zip, 0%) power and your phone will not be running. It's not "made to shutdown" it simply can't run without power. Also, if you want to simulate 0% then you can use an emulator and send the battery level with adb shell commands. – Bill Mote Aug 22 '14 at 02:44
  • @BillMote : Actually, I am developing a kiosk using android tablet.The charging for this is done not from the usual usb port but using physical cables(directly to the battery).Due to this the charge level shown using the battery api is incorrect.So the battery level shown may reduce to 0(even though there is actual charge in the battery),and shuts down the device.I was wondering if I could capture the battery intent at 0% and abort it. – Basher51 Aug 22 '14 at 02:48
  • http://developer.android.com/training/monitoring-device-state/battery-monitoring.html – Bill Mote Aug 22 '14 at 02:49
  • 1
    http://blog.rabidgremlin.com/2010/11/05/android-tips-the-emulator/ – Bill Mote Aug 22 '14 at 02:51
  • @BillMote: That battery low intent is fired on my device when the battery reaches say at 15% 8% 4%.Will check for the 0% and also the technique using emulator as you suggested. – Basher51 Aug 22 '14 at 02:51
  • @BillMote: Can you pls have a look at this as well : " http://stackoverflow.com/questions/25369834/remove-android-system-app-files-that-monitors-the-battery-level " – Basher51 Aug 22 '14 at 02:54

0 Answers0