In the example here:

It shows:

PowerManager pm = (PowerManager) getSystemService
(Context.POWER_SERVICE);
 PowerManager.WakeLock wl = pm.newWakeLock
(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
 wl.acquire();
   ..screen will stay on during this section..
 wl.release();


Once the wake lock is received from the pm, can the reference to the
pm be set to null?  Is it needed any more?  Or is there some reason to
keep it?

It seems like the wl reference is the only one needed.




--~--~---------~--~----~------------~-------~--~----~
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