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.