Skip to content

Instantly share code, notes, and snippets.

@hitesh-dhamshaniya
Created May 30, 2015 14:40
Show Gist options
  • Save hitesh-dhamshaniya/b8ed50dee2e1be0a9ab7 to your computer and use it in GitHub Desktop.
Save hitesh-dhamshaniya/b8ed50dee2e1be0a9ab7 to your computer and use it in GitHub Desktop.
Android Live Wallpaper Direct show
if (android.os.Build.VERSION.SDK_INT > 15)
{
bundle.setAction("android.service.wallpaper.CHANGE_LIVE_WALLPAPER");
bundle.putExtra("android.service.wallpaper.extra.LIVE_WALLPAPER_COMPONENT", new ComponentName(com/loard/ganesha/MyService.getPackage().getName(), com/loard/ganesha/MyService.getCanonicalName()));
} else
{
bundle.setAction("android.service.wallpaper.LIVE_WALLPAPER_CHOOSER");
}
@hitesh-dhamshaniya
Copy link
Author

It's work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment