Search code examples
androidandroid-activitysettingslive-wallpaperwallpaper

Open current live wallpaper settings from activity


I'm working on an Android live wallpaper. I have everything working just fine so far, but I need to be able to open the wallpaper settings (that already work in the wallpaper preview) from an activity.

Is there an intent or anything that will put the user on the preview screen for the current wallpaper, or just open the settings activity directly?


Solution

  • I don't think you can get to the preview directly, but you can get to the live wallpaper chooser:

    startActivity(new Intent(WallpaperManager.ACTION_LIVE_WALLPAPER_CHOOSER));
    

    Otherwise, just start your settings activity directly.

    Edit: Just found this but didn't try (It's 3.0 an up):

    startActivity(new Intent(WallpaperManager.WALLPAPER_PREVIEW_META_DATA));