lgmcben
11-16-2008, 11:56 PM
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. http://www.anddev.org/images/smiles/smile.png
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. http://www.anddev.org/images/smiles/smile.png