Lines Matching refs:intent

207                 Intent intent = new Intent(Intent.ACTION_PICK);
208 intent.setType(ContactMethods.CONTENT_POSTAL_TYPE);
209 startContactSelectionActivityForResult(intent);
218 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
219 startContactSelectionActivityForResult(intent);
223 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
224 bindIntentToClass(intent, "alias.DialShortcut");
225 startActivityForResult(intent, 0);
229 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
230 bindIntentToClass(intent, "alias.MessageShortcut");
231 startActivityForResult(intent, 0);
235 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
236 intent.setType(Contacts.CONTENT_ITEM_TYPE);
237 startContactSelectionActivityForResult(intent);
241 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
242 intent.setType(People.CONTENT_ITEM_TYPE);
243 startContactSelectionActivityForResult(intent);
247 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
248 intent.setType(Phone.CONTENT_ITEM_TYPE);
249 startContactSelectionActivityForResult(intent);
253 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
254 intent.setType(Phones.CONTENT_ITEM_TYPE);
255 startContactSelectionActivityForResult(intent);
259 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
260 intent.setType(StructuredPostal.CONTENT_ITEM_TYPE);
261 startContactSelectionActivityForResult(intent);
265 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
266 intent.setType(ContactMethods.CONTENT_POSTAL_ITEM_TYPE);
267 startContactSelectionActivityForResult(intent);
271 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
272 intent.setType(Contacts.CONTENT_ITEM_TYPE);
273 putDataExtra(intent);
274 startActivity(intent);
278 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
279 intent.setType(Contacts.CONTENT_ITEM_TYPE);
280 intent.putExtra(Insert.PHONE, "5123456789");
281 startActivity(intent);
285 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
286 intent.setType(Contacts.CONTENT_ITEM_TYPE);
287 intent.putExtra(Insert.EMAIL, "android@android.com");
288 startActivity(intent);
292 Intent intent = new Intent(Intent.ACTION_SEARCH);
293 intent.putExtra(SearchManager.ACTION_MSG, "call");
294 intent.putExtra(SearchManager.QUERY, "800-4664-411");
295 startSearchResultActivity(intent);
299 Intent intent = new Intent(Intent.ACTION_SEARCH);
300 intent.putExtra(SearchManager.QUERY, "a");
301 intent.setType(Contacts.CONTENT_TYPE);
302 startSearchResultActivity(intent);
306 Intent intent = new Intent(Intent.ACTION_SEARCH);
307 intent.putExtra(Insert.EMAIL, "a");
308 startSearchResultActivity(intent);
312 Intent intent = new Intent(Intent.ACTION_SEARCH);
313 intent.putExtra(Insert.PHONE, "800");
314 startSearchResultActivity(intent);
321 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED);
322 intent.setData(contactUri);
323 startContactListActivity(intent);
334 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
335 startActivity(intent);
345 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri);
346 startActivity(intent);
353 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri);
354 startActivity(intent);
361 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
362 startActivity(intent);
370 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
371 startActivity(intent);
379 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
381 putDataExtra(intent);
383 startActivity(intent);
405 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
406 startActivity(intent);
420 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri);
421 startActivity(intent);
428 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri);
429 startActivity(intent);
436 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
437 startActivity(intent);
445 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
446 startActivity(intent);
491 final Intent intent = new Intent(Intent.ACTION_VIEW, null);
492 intent.setType("vnd.android.cursor.dir/calls");
493 startActivity(intent);
502 final Intent intent = new Intent(Intent.ACTION_VIEW);
503 intent.setData(uri);
504 startActivity(intent);
513 final Intent intent = new Intent("android.intent.action.VIEW");
514 intent.setData(uri);
515 bindIntentToClass(intent, "com.android.dialer.CallDetailActivity");
516 startActivity(intent);
542 /** Creates an intent that is bound to a specific activity by name. */
543 private Intent bindIntentToClass(Intent intent, String activityClassName) {
544 intent.setComponent(new ComponentName(ANDROID_CONTACTS_PACKAGE, activityClassName));
545 return intent;
549 Intent intent = new Intent(UI.FILTER_CONTACTS_ACTION);
550 intent.putExtra(UI.FILTER_TEXT_EXTRA_KEY, "A");
553 // intent.putExtra("originalRequest", request);
554 return intent;
557 private void startContactListActivity(Intent intent) {
558 bindIntentToClass(intent, CONTACT_LIST_ACTIVITY_CLASS_NAME);
559 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
560 startActivity(intent);
563 private void startContactSelectionActivityForResult(Intent intent) {
564 startActivityForResult(intent, 12);
567 private void startSearchResultActivity(Intent intent) {
568 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
569 startActivity(intent);
574 Intent intent = new Intent(this, ResultActivity.class);
575 intent.putExtra("resultCode", resultCode);
576 intent.putExtra("data", data);
577 startActivity(intent);
633 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
634 intent.putExtra(Insert.ACCOUNT, account);
635 intent.putExtra(Insert.DATA_SET, dataSet);
636 startActivity(intent);
640 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
642 intent.putExtra(Insert.ACCOUNT, account);
643 intent.putExtra(Insert.DATA_SET, dataSet);
644 putDataExtra(intent);
646 startActivity(intent);
654 public void putDataExtra(final Intent intent) {
665 intent.putParcelableArrayListExtra(Insert.DATA, Lists.newArrayList(row1, row2));