Lines Matching refs:intent

172                 Intent intent = new Intent(Intent.ACTION_PICK);
173 intent.setType(ContactMethods.CONTENT_POSTAL_TYPE);
174 startContactSelectionActivityForResult(intent);
183 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
184 startContactSelectionActivityForResult(intent);
188 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
189 bindIntentToClass(intent, "alias.DialShortcut");
190 startActivityForResult(intent, 0);
194 Intent intent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
195 bindIntentToClass(intent, "alias.MessageShortcut");
196 startActivityForResult(intent, 0);
200 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
201 intent.setType(Contacts.CONTENT_ITEM_TYPE);
202 startContactSelectionActivityForResult(intent);
206 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
207 intent.setType(People.CONTENT_ITEM_TYPE);
208 startContactSelectionActivityForResult(intent);
212 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
213 intent.setType(Phone.CONTENT_ITEM_TYPE);
214 startContactSelectionActivityForResult(intent);
218 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
219 intent.setType(Phones.CONTENT_ITEM_TYPE);
220 startContactSelectionActivityForResult(intent);
224 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
225 intent.setType(StructuredPostal.CONTENT_ITEM_TYPE);
226 startContactSelectionActivityForResult(intent);
230 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
231 intent.setType(ContactMethods.CONTENT_POSTAL_ITEM_TYPE);
232 startContactSelectionActivityForResult(intent);
236 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
237 intent.setType(Contacts.CONTENT_ITEM_TYPE);
238 putDataExtra(intent);
239 startActivity(intent);
243 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
244 intent.setType(Contacts.CONTENT_ITEM_TYPE);
245 intent.putExtra(Insert.PHONE, "5123456789");
246 startActivity(intent);
250 Intent intent = new Intent(Intent.ACTION_INSERT_OR_EDIT);
251 intent.setType(Contacts.CONTENT_ITEM_TYPE);
252 intent.putExtra(Insert.EMAIL, "android@android.com");
253 startActivity(intent);
257 final Intent intent = new Intent(Intent.ACTION_INSERT);
258 intent.setType(Groups.CONTENT_TYPE);
259 startActivity(intent);
263 Intent intent = new Intent(Intent.ACTION_SEARCH);
264 intent.putExtra(SearchManager.ACTION_MSG, "call");
265 intent.putExtra(SearchManager.QUERY, "800-4664-411");
266 startSearchResultActivity(intent);
270 Intent intent = new Intent(Intent.ACTION_SEARCH);
271 intent.putExtra(SearchManager.QUERY, "a");
272 intent.setType(Contacts.CONTENT_TYPE);
273 startSearchResultActivity(intent);
277 Intent intent = new Intent(Intent.ACTION_SEARCH);
278 intent.putExtra(Insert.EMAIL, "a");
279 startSearchResultActivity(intent);
283 Intent intent = new Intent(Intent.ACTION_SEARCH);
284 intent.putExtra(Insert.PHONE, "800");
285 startSearchResultActivity(intent);
289 Intent intent = new Intent(Intent.ACTION_SEARCH);
290 intent.putExtra(SearchManager.QUERY, "a");
291 startSearchResultActivity(intent);
298 Intent intent = new Intent(Intents.SEARCH_SUGGESTION_CLICKED);
299 intent.setData(contactUri);
300 startContactListActivity(intent);
308 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
309 startActivity(intent);
321 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupWithoutIdUri);
322 startActivity(intent);
331 final Intent intent = new Intent(Intent.ACTION_EDIT, lookupUri);
332 startActivity(intent);
343 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
344 startActivity(intent);
356 final Intent intent = new Intent(Intent.ACTION_EDIT, uri);
357 startActivity(intent);
367 Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
368 putDataExtra(intent);
369 startActivity(intent);
389 final Intent intent = findArbitraryGroupIntent(Intent.ACTION_EDIT);
390 if (intent != null) {
391 startActivity(intent);
399 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
400 startActivity(intent);
409 Intent intent = new Intent(Intent.ACTION_VIEW);
410 intent.setType("vnd.android.cursor.dir/person");
411 startActivity(intent);
422 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupWithoutIdUri);
423 startActivity(intent);
432 final Intent intent = new Intent(Intent.ACTION_VIEW, lookupUri);
433 startActivity(intent);
444 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
445 startActivity(intent);
457 final Intent intent = new Intent(Intent.ACTION_VIEW, uri);
458 startActivity(intent);
464 final Intent intent = findArbitraryGroupIntent(Intent.ACTION_VIEW);
465 if (intent != null) {
466 startActivity(intent);
509 /** Creates an intent that is bound to a specific activity by name. */
510 private Intent bindIntentToClass(Intent intent, String activityClassName) {
511 intent.setComponent(new ComponentName(mContactsPackageName,
513 return intent;
516 private void startContactListActivity(Intent intent) {
517 bindIntentToClass(intent, CONTACT_LIST_ACTIVITY_CLASS_NAME);
518 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
519 startActivity(intent);
522 private void startContactSelectionActivityForResult(Intent intent) {
523 startActivityForResult(intent, 12);
526 private void startSearchResultActivity(Intent intent) {
527 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
528 startActivity(intent);
533 Intent intent = new Intent(this, ResultActivity.class);
534 intent.putExtra("resultCode", resultCode);
535 intent.putExtra("data", data);
536 startActivity(intent);
577 final Intent intent = new Intent(action) ;
578 intent.setData(ContentUris.withAppendedId(Groups.CONTENT_URI, groupId));
580 intent.setClassName("com.google.android.contacts",
582 return intent;
606 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
607 intent.putExtra(Insert.EXTRA_ACCOUNT, account);
608 intent.putExtra(Insert.EXTRA_DATA_SET, dataSet);
609 startActivity(intent);
613 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI);
615 intent.putExtra(Insert.EXTRA_ACCOUNT, account);
616 intent.putExtra(Insert.EXTRA_DATA_SET, dataSet);
617 putDataExtra(intent);
619 startActivity(intent);
627 public void putDataExtra(final Intent intent) {
642 intent.putParcelableArrayListExtra(Insert.DATA, rows);