Home | History | Annotate | Download | only in allintents

Lines Matching refs:intent

25 import android.content.Intent;
154 new Intent(UI.LIST_DEFAULT, Contacts.CONTENT_URI));
159 new Intent(UI.LIST_ALL_CONTACTS_ACTION, Contacts.CONTENT_URI));
164 new Intent(UI.LIST_CONTACTS_WITH_PHONES_ACTION, Contacts.CONTENT_URI));
169 new Intent(UI.LIST_STARRED_ACTION, Contacts.CONTENT_URI));
174 new Intent(UI.LIST_FREQUENT_ACTION, Contacts.CONTENT_URI));
179 new Intent(UI.LIST_STREQUENT_ACTION, Contacts.CONTENT_URI));
184 new Intent(UI.LIST_GROUP_ACTION, Contacts.CONTENT_URI));
189 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI));
194 new Intent(Intent.ACTION_PICK, People.CONTENT_URI));
199 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI));
204 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI));
209 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI));
213 Intent intent = new Intent(Intent.ACTION_PICK);
214 intent.setType(ContactMethods.CONTENT_POSTAL_TYPE);
215 startContactSelectionActivityForResult(intent);
220 new Intent(Intent.ACTION_PICK, Email.CONTENT_URI));
224 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
225 startContactSelectionActivityForResult(intent);
229 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
230 bindIntentToClass(intent, "alias.DialShortcut");
231 startActivityForResult(intent, 0);
235 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
236 bindIntentToClass(intent, "alias.MessageShortcut");
237 startActivityForResult(intent, 0);
241 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
242 intent.setType(Contacts.CONTENT_ITEM_TYPE);
243 startContactSelectionActivityForResult(intent);
247 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
248 intent.setType(People.CONTENT_ITEM_TYPE);
249 startContactSelectionActivityForResult(intent);
253 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
254 intent.setType(Phone.CONTENT_ITEM_TYPE);
255 startContactSelectionActivityForResult(intent);
259 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
260 intent.setType(Phones.CONTENT_ITEM_TYPE);
261 startContactSelectionActivityForResult(intent);
265 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
266 intent.setType(StructuredPostal.CONTENT_ITEM_TYPE);
267 startContactSelectionActivityForResult(intent);
271 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
272 intent.setType(ContactMethods.CONTENT_POSTAL_ITEM_TYPE);
273 startContactSelectionActivityForResult(intent);
277 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
278 intent.setType(Contacts.CONTENT_ITEM_TYPE);
279 putDataExtra(intent);
280 startActivity(intent);
284 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
285 intent.setType(Contacts.CONTENT_ITEM_TYPE);
286 intent.putExtra(Insert.PHONE, "5123456789");
287 startActivity(intent);
291 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
292 intent.setType(Contacts.CONTENT_ITEM_TYPE);
293 intent.putExtra(Insert.EMAIL, "android@android.com");
294 startActivity(intent);
298 Intent intent = new Intent(Intent.ACTION_SEARCH);
299 intent.putExtra(SearchManager.ACTION_MSG, "call");
300 intent.putExtra(SearchManager.QUERY, "800-4664-411");
301 startSearchResultActivity(intent);
305 Intent intent = new Intent(Intent.ACTION_SEARCH);
306 intent.putExtra(SearchManager.QUERY, "a");
307 intent.setType(Contacts.CONTENT_TYPE);
308 startSearchResultActivity(intent);
312 Intent intent = new Intent(Intent.ACTION_SEARCH);
313 intent.putExtra(Insert.EMAIL, "a");
314 startSearchResultActivity(intent);
318 Intent intent = new Intent(Intent.ACTION_SEARCH);
319 intent.putExtra(Insert.PHONE, "800");
320 startSearchResultActivity(intent);
327 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED);
328 intent.setData(contactUri);
329 startContactListActivity(intent);
340 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
341 startActivity(intent);
351 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri);
352 startActivity(intent);
359 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri);
360 startActivity(intent);
367 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
368 startActivity(intent);
376 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
377 startActivity(intent);
381 startActivity(new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI));
385 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
387 putDataExtra(intent);
389 startActivity(intent);
400 startActivity(new Intent(Intent.ACTION_INSERT, RawContacts.CONTENT_URI));
405 startActivity(new Intent(Intent.ACTION_INSERT, legacyContentUri));
411 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
412 startActivity(intent);
416 startActivity(new Intent(Intent.ACTION_VIEW, Contacts.CONTENT_URI));
426 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri);
427 startActivity(intent);
434 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri);
435 startActivity(intent);
442 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
443 startActivity(intent);
451 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
452 startActivity(intent);
456 startActivity(new Intent(Intent.ACTION_DIAL));
465 startActivity(new Intent(Intent.ACTION_DIAL, uri));
476 startActivity(new Intent(Intent.ACTION_DIAL, uri));
481 startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("voicemail:")));
485 startActivity(new Intent(Intent.ACTION_CALL_BUTTON));
489 startActivity(new Intent(Intent.ACTION_DIAL, Uri.parse("tel:555-123-4567")));
493 startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("tel:555-123-4567")));
497 final Intent intent = new Intent(Intent.ACTION_VIEW);
498 intent.setType(CallLog.Calls.CONTENT_TYPE);
499 startActivity(intent);
503 final Intent intent = new Intent(Intent.ACTION_VIEW);
504 intent.setType(CallLog.Calls.CONTENT_TYPE);
505 intent.putExtra(CallLog.Calls.EXTRA_CALL_TYPE_FILTER, CallLog.Calls.MISSED_TYPE);
506 startActivity(intent);
510 final Intent intent = new Intent(Intent.ACTION_VIEW);
511 intent.setType(CallLog.Calls.CONTENT_TYPE);
512 intent.putExtra(CallLog.Calls.EXTRA_CALL_TYPE_FILTER, CallLog.Calls.VOICEMAIL_TYPE);
513 startActivity(intent);
522 final Intent intent = new Intent(Intent.ACTION_VIEW);
523 intent.setData(uri);
524 startActivity(intent);
533 final Intent intent = new Intent("android.intent.action.VIEW");
534 intent.setData(uri);
535 bindIntentToClass(intent, "com.android.dialer.CallDetailActivity");
536 startActivity(intent);
540 startActivity(bindIntentToClass(new Intent(),
562 /** Creates an intent that is bound to a specific activity by name. */
563 private Intent bindIntentToClass(Intent intent, String activityClassName) {
564 intent.setComponent(new ComponentName(mContactsPackageName,
566 return intent;
569 private Intent buildFilterIntent(int actionCode, boolean legacy) {
570 Intent intent = new Intent(UI.FILTER_CONTACTS_ACTION);
571 intent.putExtra(UI.FILTER_TEXT_EXTRA_KEY, "A");
574 // intent.putExtra("originalRequest", request);
575 return intent;
578 private void startContactListActivity(Intent intent) {
579 bindIntentToClass(intent, CONTACT_LIST_ACTIVITY_CLASS_NAME);
580 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
581 startActivity(intent);
584 private void startContactSelectionActivityForResult(Intent intent) {
585 startActivityForResult(intent, 12);
588 private void startSearchResultActivity(Intent intent) {
589 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
590 startActivity(intent);
594 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
595 Intent intent = new Intent(this, ResultActivity.class);
596 intent.putExtra("resultCode", resultCode);
597 intent.putExtra("data", data);
598 startActivity(intent);
654 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
655 intent.putExtra(Insert.ACCOUNT, account);
656 intent.putExtra(Insert.DATA_SET, dataSet);
657 startActivity(intent);
661 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
663 intent.putExtra(Insert.ACCOUNT, account);
664 intent.putExtra(Insert.DATA_SET, dataSet);
665 putDataExtra(intent);
667 startActivity(intent);
675 public void putDataExtra(final Intent intent) {
686 intent.putParcelableArrayListExtra(Insert.DATA, Lists.newArrayList(row1, row2));