[android-developers] Re: Android 2.0 battery level
Take a look at http://developer.android.com/reference/android/os/BatteryManager.html#EXTRA_VOLTAGE. Mihai Fonoage On Feb 15, 7:49 am, Maxood wrote: > Hi Mark! I want to display Batter level stats in my app as shown in > the following link: > > http://itunes.apple.com/us/app/app-genie/id352781306?mt=8 > > Wonder how can i access batter voltage/power information at runtime? > > On Dec 23 2009, 5:50 pm, Mark Murphy wrote: > > > > > Motalen wrote: > > > Is this to say that the Droid has the capability to report higher > > > precision values given the nature of the hardware BUT there is no way > > > to access it? > > > Here is my interpretation: > > > -- Precision refers to the fineness of detail. Many Android devices > > report at 1% precision, but the DROID reports at 10% precision. > > > -- Accuracy refers to how well the reported values reflect reality. > > > > If I am mistaken, which I hope I am, how would we go > > > about accessing the finer granularity that is needed when developing > > >batteryapplications on the Droid? > > > As far as I know, you can't. As Ms. Hackborn said, "[10%] is just the > > precision the Droidbatteryreports". > > > > I have no problem getting single > > > digit precision with other handsets only the Droid produces the > > > strange '10's increments' only. > > > That's the way Motorola elected to implement thebatterylevel > > information. The SDK does not mandate a minimum level of precision, so > > device manufacturers can report 1%, 10%, 3.14%, or whatever floats their > > boats. Applications (particularly paid ones) should not be relying upon > > some minimum level of precision, just as they should not be relying on > > certain LED colors or the availability of a physical CAMERA button. > > > If you have more detailed questions on Motorola devices, I recommend > > asking Motorola the questions, since they have developer support boards: > > >http://developer.motorola.com > > > -- > > Mark Murphy (a Commons > > Guy)http://commonsware.com|http://twitter.com/commonsguy > > > Android Development Wiki:http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0 battery level
Hi Mark! I want to display Batter level stats in my app as shown in the following link: http://itunes.apple.com/us/app/app-genie/id352781306?mt=8 Wonder how can i access batter voltage/power information at runtime? On Dec 23 2009, 5:50 pm, Mark Murphy wrote: > Motalen wrote: > > Is this to say that the Droid has the capability to report higher > > precision values given the nature of the hardware BUT there is no way > > to access it? > > Here is my interpretation: > > -- Precision refers to the fineness of detail. Many Android devices > report at 1% precision, but the DROID reports at 10% precision. > > -- Accuracy refers to how well the reported values reflect reality. > > > If I am mistaken, which I hope I am, how would we go > > about accessing the finer granularity that is needed when developing > >batteryapplications on the Droid? > > As far as I know, you can't. As Ms. Hackborn said, "[10%] is just the > precision the Droidbatteryreports". > > > I have no problem getting single > > digit precision with other handsets only the Droid produces the > > strange '10's increments' only. > > That's the way Motorola elected to implement thebatterylevel > information. The SDK does not mandate a minimum level of precision, so > device manufacturers can report 1%, 10%, 3.14%, or whatever floats their > boats. Applications (particularly paid ones) should not be relying upon > some minimum level of precision, just as they should not be relying on > certain LED colors or the availability of a physical CAMERA button. > > If you have more detailed questions on Motorola devices, I recommend > asking Motorola the questions, since they have developer support boards: > > http://developer.motorola.com > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android Development Wiki:http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Android 2.0 battery level
Motalen wrote: > Is this to say that the Droid has the capability to report higher > precision values given the nature of the hardware BUT there is no way > to access it? Here is my interpretation: -- Precision refers to the fineness of detail. Many Android devices report at 1% precision, but the DROID reports at 10% precision. -- Accuracy refers to how well the reported values reflect reality. > If I am mistaken, which I hope I am, how would we go > about accessing the finer granularity that is needed when developing > battery applications on the Droid? As far as I know, you can't. As Ms. Hackborn said, "[10%] is just the precision the Droid battery reports". > I have no problem getting single > digit precision with other handsets only the Droid produces the > strange '10's increments' only. That's the way Motorola elected to implement the battery level information. The SDK does not mandate a minimum level of precision, so device manufacturers can report 1%, 10%, 3.14%, or whatever floats their boats. Applications (particularly paid ones) should not be relying upon some minimum level of precision, just as they should not be relying on certain LED colors or the availability of a physical CAMERA button. If you have more detailed questions on Motorola devices, I recommend asking Motorola the questions, since they have developer support boards: http://developer.motorola.com -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Development Wiki: http://wiki.andmob.org -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Android 2.0 battery level
Dianne, Is this to say that the Droid has the capability to report higher precision values given the nature of the hardware BUT there is no way to access it? If I am mistaken, which I hope I am, how would we go about accessing the finer granularity that is needed when developing battery applications on the Droid? I have no problem getting single digit precision with other handsets only the Droid produces the strange '10's increments' only. Much appreciated, Sean On Nov 10, 3:54 pm, Dianne Hackborn wrote: > That is just the precision the Droid battery reports. Note that the Droid's > battery measurement is actually much more accurate than the G1 or myTouch. > > On Mon, Nov 9, 2009 at 8:29 PM, Scott wrote: > > I don't know if this is an Android 2.0 or a Motorola Droid issue, but > > I noticed that the battery level only reports in increments of 10's. > > For example 70%, 60% etc. Any apps or widgets also can only see this > > as well. Is this a bug, what happened to the detailed stats? > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en > > -- > Dianne Hackborn > Android framework engineer > hack...@android.com > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en