Lines Matching defs:intent
22 import android.content.Intent;
44 private static final String EXTRA_INTENT = "com.android.tv.LauncherActivity.INTENT";
51 public static void startActivitySafe(Activity baseActivity, Intent intentToLaunch) {
63 public static void startActivityForResultSafe(Activity baseActivity, Intent intentToLaunch,
74 private static Intent createIntent(Context context, Intent intentToLaunch,
76 Intent intent = new Intent(context, LauncherActivity.class);
77 intent.putExtra(EXTRA_INTENT, intentToLaunch);
79 intent.putExtra(EXTRA_REQUEST_RESULT, true);
81 return intent;
89 Intent intent = getIntent().getParcelableExtra(EXTRA_INTENT);
93 startActivityForResult(intent, REQUEST_START_ACTIVITY);
95 startActivity(intent);
100 Log.w(TAG, "Activity not found for " + intent);
101 intent.putExtra(ERROR_MESSAGE,
103 setResult(Activity.RESULT_CANCELED, intent);
109 public void onActivityResult(int requestCode, int resultCode, Intent data) {