Skip to content

Instantly share code, notes, and snippets.

@seabornlee
Created January 11, 2015 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seabornlee/569c4a43c73ff6304343 to your computer and use it in GitHub Desktop.
Save seabornlee/569c4a43c73ff6304343 to your computer and use it in GitHub Desktop.
@Override
protected void onResume() {
super.onResume();
WallpaperInfo wallpaperInfo = WallpaperManager.getInstance(MainActivity.this).getWallpaperInfo();
if (wallpaperInfo.getServiceName().equals(SnowflakesWallpaperService.class.getName())) {
Toast.makeText(this, "Successful!", Toast.LENGTH_LONG).show();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment