Hi all, I'm seeing the following error intermittently when testing my app: 01-20 23:56:52.794: DEBUG/dalvikvm(25525): GC freed 1616 objects / 94232 bytes in 87ms 01-20 23:56:52.874: ERROR/AndroidRuntime(25525): java.lang.Exception: WakeLock finalized while still held: App Name 01-20 23:56:52.874: ERROR/AndroidRuntime(25525): at android.os.PowerManager$WakeLock.finalize(PowerManager.java:295) 01-20 23:56:52.874: ERROR/AndroidRuntime(25525): at dalvik.system.NativeStart.run(Native Method)
It looks like GC is cleaning my context while it is holding the WakeLock, I'm using a static class to manage the wakelocks, how can I ensure the context that holds the wakelock does not get GC'd? Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---