Um, you need to release it at some point.  Once you release it, you don't
need to do anything with it any more if you don't want.

On Thu, Mar 19, 2009 at 11:17 AM, madcoder <[email protected]> wrote:

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


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to