@Override
  public void onCreate(Bundle arguments) {
    super.onCreate(arguments);

    mIntent.setClassName(getTargetContext(), "DeskClock");
    start();
  }
示例#2
0
  @Override
  public void onCreate(Bundle arguments) {
    super.onCreate(arguments);

    mIntent.setClassName(getTargetContext(), TARGET_PREVIEW_CLASS);
    mIntent.putExtra(PreviewStubActivity.PACKAGE_NAME, TARGET_PACKAGE);
    mIntent.putExtra(PreviewStubActivity.CLASS_NAME, TARGET_WALLPAPER_CLASS);
    start();
  }