urgent: how to retrieve percent decommission threshold using battery intent?

B Ben Lam 3 years 7 months ago
13 2 0

Hi guys,
 
I read about percent decommission threshold from:
 
http://techdocs.zebra.com/emdk-for-android/4-0/mx/batterymgr/
 
and learned about retrieving values from following link.
 
The article doesn't mention what 'extra' name to use to get the percent decommission threshold and the link to the sample project is missing (404).
 
How do I get the percent decommission threshold value from the battery intent? Thanks!
 
http://techdocs.zebra.com/emdk-for-android/4-0/tutorial/tutbatteryinten…

Please Register or Login to post a reply

2 Replies

E Efkan YILMAZ

Hey Ben,  the Intent API reference is here.  For which device are you trying to pull this battery data?  It looks like the Intent extra you are looking for is "battery_decommission"

B Ben Lam

Thanks for your fast response Bill, the exact device is to be determined (TBD). I have a MC67 to test without gifted battery (which I understand is necessary for percent decommission threshold). Obviously not ideal but I hope to code it in right so when gifted battery is available the app will 'just work'.

It seems to me battery_decommission is battery decommission status ('return values' listed in same order as values listed under 'features'). I was hoping the sample project may have more details but I get a 404 when I try to download.

CONTACT
Can’t find what you’re looking for?