Code example for WallpaperInfo

Methods: getServiceName

0
  protected boolean isRunning(Context context) {
    WallpaperManager wallpaperManager = (WallpaperManager)context.getSystemService(Context.WALLPAPER_SERVICE);
 
    WallpaperInfo wallpaperInfo = wallpaperManager.getWallpaperInfo();
    if (wallpaperInfo != null) {
      Log.d(TAG, "serviceName:[" + wallpaperInfo.getServiceName() + "]");
      if ("jp.co.qsdn.android.hammer3d.AtlantisService".equals(wallpaperInfo.getServiceName())) {
        return true; 
      } 
    } 
    return false; 
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java