I've got a live wallpaper that I'd like to communicate with from an Activity in the same package. I've never done any work with services. Would I be able to use the Local Service pattern, or am I restricted because my service is a live wallpaper, and need to use Intents or AIDL?
I think the flow would go something like this, please correct me where my process might fail:
- Preview the live wallpaper from the Live Wallpaper Chooser
- Go into my custom Settings activity
- Click on a "Screen Shot" button or preference to open up a "Screen Shot" activity
- Send a message to my wallpaper, asking for a screen shot bitmap to be rendered
- The wallpaper service receives the message and renders its current visuals to a bitmap in the app's data directory
- The wallpaper sends a message back to the activity indicating success and location of the bitmap
- The activity receives this message, loads the bitmap from the given location, and displays it to the user for further processing / sharing
The parts I'm not sure about are the message passing in 4-7.