To auto-stop when the user launches another app (I assume from your
own), you can just look at the pause or stop call of your own
activities.

For starting when other apps are "closed", there is no way to do this,
it really isn't in the Android application model.  It is completely
normal for a user to leave all applications "open" (a very nebulous
concept of android) forever.

On Nov 16, 11:56 pm, Kakyoin <[EMAIL PROTECTED]> wrote:
> I've successfully created a service that change the wallpaper every 2
> seconds.
>
> My next goals:
>
> I want this service to...
>
> - auto-stop itself when user launch other app.
> - auto-start itself when the wallpaper is visible. (eg. when users
> close all other apps)
>
> The only clue I have is, when user press the device's "home" button,
> Android will launch an activity of category
> "Android.intent.category.HOME".
>
> Which can help me a bit but obviously not enough (as pressing back
> button also make wallpaper visible, but no event fired)
>
> Any recommendations are welcome.
>
> Thank you in advance. Smile
--~--~---------~--~----~------------~-------~--~----~
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