I need to send configuration information from a "regular" app to my
Live Wallpaper, which may or may not be the selected wallpaper.

I can see two possiblilities:

1. Use SendWallPaperCommand. This only works for the Home application.
ItMy test won't build because this is a static method and I am calling
it from an application instance.
http://www.kiwidoc.com/java/l/x/android/android/5/p/android.view/c/IWindowSession
describes how to implement a private interface to WindowManager but
also warns "this is not part of the public API".

2. Use a Broadcast Receiver. This seems wrong because (1) above
implements something similar explicitly for Live Wallpapers. Nor am I
sure it will communicate with Live Wallpapers that aren't running.

Anyhow, I may eventually need some other methods from
WallpaperManager, like sending an intent to change wallpapers.

Can anybody advise me how to gain access to WallPaperCommand from
within a regular app (ie not the Home application)?

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