AFAIK if the screen is off the LWP doesn't continue running. I am not sure
if the LWP pauses or stops if it is in the background.

If you still want to pause and resume it, register and unregister the
physics handlers in you onPause and onResume.

Thanks

On Sun, Jul 31, 2011 at 7:08 AM, Jim Graham <[email protected]> wrote:

> I'm working on a live wallpaper using AndEngine's physics extension.
> I've turned off all touch events and the accelerometer (known problems
> with the live wallpaper extension ... short version, they don't work
> right now, lots of people waiting for a fix).
>
> Here's my question:  the activity in my LWP is based on the physics
> characteristics of the walls and the sprites, so it maintains itself.
> In other words, the little guys are active all of the time.  My concern
> is that they may still be active when A) the display is turned off,
> and/or B) another app is in the foreground, and the LWP isn't displayed.
>
> Are either of these assumptions true?  And if so, how do you go about
> pausing a live wallpaper when visibility changes?  (I know the listener,
> just not what to do inside of it....)   The last thing I want is for my
> first live wallpaper to be a resource hog....
>
> Btw, as usual, a pointer to a reference, tutorial, and/or example is
> as good, or better, than code (I learn best with example code paired
> with a good reference).
>
> Thanks,
>   --jim
>
> --
> 73 DE N5IAL (/4)        | DMR: So fsck was originally called
> [email protected]    |      something else.
> < Running FreeBSD 7.0 > | Q:   What was it called?
> ICBM / Hurricane:       | DMR: Well, the second letter was different.
>   30.44406N 86.59909W  |    -- Dennis M. Ritchie, Usenix, June 1998.
>
> --
> 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




-- 
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Appaholics

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