android 开发

 
  
  final WallpaperManager wpm = WallpaperManager.getInstance(context);
  ComponentName cn = new ComponentName("包", "包+类");
  IWallpaperManager iwmp = wpm.getIWallpaperManager();
  try {
  iwmp.setWallpaperComponent(cn);
  // Setting a Live wallpaper doesn't generate a
  // WALLPAPER_CHANGED, so don't ignore the next one.
  } catch (IllegalArgumentException e) {
  Log.v("AAAAAA", "LiveWallpaper, Problem 1 setting the live wallpaper");
  } catch (RemoteException e) {
  Log.v("AAAAAAA", "LiveWallpaper, Problem 2 setting the live wallpaper");
  }

你可能感兴趣的:(android,开发)