StartActivityForResult(intent, REQUEST_SET_LIVE_WALLPAPER) Intent.putExtra(WallpaperManager.EXTRA_LIVE_WALLPAPER_COMPONENT, component) Intent = new Intent(WallpaperManager.ACTION_CHANGE_LIVE_WALLPAPER) My first cut with ComponentName looked like this: ComponentName component = new ComponentName(getPackageName(), "LiveWallpaperService") The first thing I noticed was that the EXTRA_LIVE_WALLPAPER_COMPONENT doesn't require a String, but a ComponentName.
0 Comments
Leave a Reply. |