Home | History | Annotate | Download | only in nfc

Lines Matching refs:intent

29 import android.content.Intent;
65 Intent mLaunchIntent;
151 public void parseShareIntentAndFinish(Intent intent) {
152 if (intent == null || intent.getAction() == null ||
153 (!intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND) &&
154 !intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND_MULTIPLE))) return;
156 // First, see if the intent contains clip-data, and if so get data from there
157 ClipData clipData = intent.getClipData();
181 if (intent.getAction().equalsIgnoreCase(Intent.ACTION_SEND)) {
182 final Uri uri = intent.getParcelableExtra(Intent.EXTRA_STREAM);
183 final CharSequence text = intent.getCharSequenceExtra(Intent.EXTRA_TEXT);
185 if (DBG) Log.d(TAG, "Found uri in ACTION_SEND intent.");
188 if (DBG) Log.d(TAG, "Found EXTRA_TEXT in ACTION_SEND intent.");
191 if (DBG) Log.d(TAG, "Did not find any shareable data in ACTION_SEND intent.");
194 final ArrayList<Uri> uris = intent.getParcelableArrayListExtra(Intent.EXTRA_STREAM);
195 final ArrayList<CharSequence> texts = intent.getCharSequenceArrayListExtra(
196 Intent.EXTRA_TEXT);
200 if (DBG) Log.d(TAG, "Found uri in ACTION_SEND_MULTIPLE intent.");
205 if (DBG) Log.d(TAG, "Found text in ACTION_SEND_MULTIPLE intent.");
209 "ACTION_SEND_MULTIPLE intent.");
233 grantUriPermission("com.android.nfc", uri, Intent.FLAG_GRANT_READ_URI_PERMISSION);
264 public void onReceive(Context context, Intent intent) {
265 String action = intent.getAction();
266 if (NfcAdapter.ACTION_ADAPTER_STATE_CHANGED.equals(intent.getAction())) {
267 int state = intent.getIntExtra(NfcAdapter.EXTRA_ADAPTER_STATE,