Example #1
0
  /** Calls LaunchApp and finish. */
  @Override
  public void onStart() {
    super.onStart();

    LaunchApp();
    finish(Activity.RESULT_OK, mResults);
  }
  @Override
  public void onCreate(Bundle arguments) {
    super.onCreate(arguments);

    mIntent.setClassName(getTargetContext(), "DeskClock");
    start();
  }
Example #3
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();
  }