Lines Matching refs:Intent
21 import android.content.Intent;
37 Intent intent = getIntent();
38 Parcelable targetParcelable = intent.getParcelableExtra(Intent.EXTRA_INTENT);
39 if (!(targetParcelable instanceof Intent)) {
45 Intent target = (Intent)targetParcelable;
49 mReplacementExtras = intent.getBundleExtra(Intent.EXTRA_REPLACEMENT_EXTRAS);
50 CharSequence title = intent.getCharSequenceExtra(Intent.EXTRA_TITLE);
55 Parcelable[] pa = intent.getParcelableArrayExtra(Intent.EXTRA_INITIAL_INTENTS);
56 Intent[] initialIntents = null;
58 initialIntents = new Intent[pa.length];
60 if (!(pa[i] instanceof Intent)) {
61 Log.w("ChooserActivity", "Initial intent #" + i + " not an Intent: " + pa[i]);
66 final Intent in = (Intent) pa[i];
72 Intent.EXTRA_CHOSEN_COMPONENT_INTENT_SENDER);
79 public Intent getReplacementIntent(ActivityInfo aInfo, Intent defIntent) {
80 Intent result = defIntent;
84 result = new Intent(defIntent);
90 result = Intent.createChooser(result,
91 getIntent().getCharSequenceExtra(Intent.EXTRA_TITLE));
97 public void onActivityStarted(Intent intent) {
101 final Intent fillIn = new Intent().putExtra(Intent.EXTRA_CHOSEN_COMPONENT, target);
112 private void modifyTargetIntent(Intent in) {
114 if (Intent.ACTION_SEND.equals(action) ||
115 Intent.ACTION_SEND_MULTIPLE.equals(action)) {
116 in.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT |
117 Intent.FLAG_ACTIVITY_MULTIPLE_TASK);