Home | History | Annotate | Download | only in group

Lines Matching defs:Intent

22 import android.content.Intent;
142 /** Returns an Intent to send emails/phones to some activity/app */
145 final Intent intent = new Intent(Intent.ACTION_SENDTO,
148 Intent.createChooser(intent, title), RESULT_SEND_TO_SELECTION);
151 /** Returns an Intent to pick emails/phones to send to selection (or group) */
152 public static Intent createSendToSelectionPickerIntent(Context context, long[] ids,
154 final Intent intent = new Intent(context, ContactSelectionActivity.class);
155 intent.setAction(UiIntentActions.ACTION_SELECT_ITEMS);
156 intent.setType(ContactsUtils.SCHEME_MAILTO.equals(sendScheme)
159 intent.putExtra(UiIntentActions.SELECTION_ITEM_LIST, ids);
160 intent.putExtra(UiIntentActions.SELECTION_DEFAULT_SELECTION, defaultSelection);
161 intent.putExtra(UiIntentActions.SELECTION_SEND_SCHEME, sendScheme);
162 intent.putExtra(UiIntentActions.SELECTION_SEND_TITLE, title);
164 return intent;
167 /** Returns an Intent to pick contacts to add to a group. */
168 public static Intent createPickMemberIntent(Context context,
170 final Intent intent = new Intent(context, ContactSelectionActivity.class);
171 intent.setAction(Intent.ACTION_PICK);
172 intent.setType(Groups.CONTENT_TYPE);
173 intent.putExtra(UiIntentActions.GROUP_ACCOUNT_NAME, groupMetaData.accountName);
174 intent.putExtra(UiIntentActions.GROUP_ACCOUNT_TYPE, groupMetaData.accountType);
175 intent.putExtra(UiIntentActions.GROUP_ACCOUNT_DATA_SET, groupMetaData.dataSet);
176 intent.putExtra(UiIntentActions.GROUP_CONTACT_IDS, memberContactIds);
177 return intent;