Seems like that should be a bug - when an app exits completely,
shouldn't all resources be cleaned up? (Whether it exits on purpose,
due to ANR/FC or due to something like task killer or the system prefs
"kill app"..)

(I'm still trying to track down my battery usage in a case where it
just says 'cell radio' and 'phone idle' totalling about 95-98% but it
still only lasts 4 hours or so. If it can leak resources like this,
that might lead to an explanation.)

On Fri, Oct 23, 2009 at 4:10 AM, CraigsRace <craig...@gmail.com> wrote:
>
> Hi Dianne,
>
> I did have the phone unplugged.
>
> However, I have now solved the problem (which turned out to be my
> fault *oops*).
>
> I wasn't unregistering the sensor service when the game quit.  So,
> even though my game would be removed from memory, I'm guessing the
> sensor service was continuing to run.
>
> All fixed with the code:
>
> SensorManager sensorMgr = (SensorManager)this.parent.getSystemService
> (Context.SENSOR_SERVICE);
> sensorMgr.unregisterListener(...);
>
> Cheers.
>
>
> On Oct 23, 6:04 pm, Dianne Hackborn <hack...@android.com> wrote:
>> The battery usage shows usage from when the device was last unplugged.  When
>> it is plugged in the stats are stopped, because you are now on power so
>> nothing you can do is going to use battery.  (And when you then next unplug,
>> the stats are reset and start collecting again.)
>>
>>
>>
>> On Thu, Oct 22, 2009 at 9:28 PM, CraigsRace <craig...@gmail.com> wrote:
>>
>> > An hour after my G1 phone was fully charged, the "Battery Usage"
>> > showed me that my game had used 20% of the battery usage.  Except, I
>> > never ran my game (I had run the game before starting the charge).  I
>> > checked TasKiller, and it didn't list my game as running (my game also
>> > doesn't run any services).  When I clicked on the details of the
>> > battery usage for my game, it didn't list anything under the "Use
>> > details" section.
>>
>> > Is it possible to use battery, but not have anything listed under the
>> > "Use details" section?
>>
>> > Another user of my game also noticed this problem.
>>
>> --
>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to