Lines Matching refs:Intent

21 import android.content.Intent;
25 * Helper for accessing features in {@link android.content.Intent}
31 Intent makeMainActivity(ComponentName componentName);
32 Intent makeMainSelectorActivity(String selectorAction, String selectorCategory);
33 Intent makeRestartActivityTask(ComponentName mainActivity);
38 public Intent makeMainActivity(ComponentName componentName) {
39 Intent intent = new Intent(Intent.ACTION_MAIN);
41 intent.addCategory(Intent.CATEGORY_LAUNCHER);
46 public Intent makeMainSelectorActivity(String selectorAction,
51 Intent intent = new Intent(selectorAction);
57 public Intent makeRestartActivityTask(ComponentName mainActivity) {
58 Intent intent = makeMainActivity(mainActivity);
59 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
67 public Intent makeMainActivity(ComponentName componentName) {
71 public Intent makeRestartActivityTask(ComponentName componentName) {
78 public Intent makeMainSelectorActivity(String selectorAction, String selectorCategory) {
150 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE},
151 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE}
159 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_AVAILABLE},
160 * {@link android.content.Intent#ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE}
168 * A constant String that is associated with the Intent, used with
169 * {@link android.content.Intent#ACTION_SEND} to supply an alternative to
170 * {@link android.content.Intent#EXTRA_TEXT}
172 * {@link android.content.Intent#EXTRA_TEXT}.
177 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
182 * {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK}.
187 * If set in an Intent passed to {@link Context#startActivity Context.startActivity()},
192 * {@link android.content.Intent#FLAG_ACTIVITY_NEW_TASK}.
200 * is the Intent that is started when the application's is launched from
202 * same way, it is important that they use an Intent structured the same
205 * <p>The returned Intent has the given Activity component as its explicit
206 * component, {@link Intent#ACTION_MAIN ACTION_MAIN} as its action, and includes the
207 * category {@link Intent#CATEGORY_LAUNCHER CATEGORY_LAUNCHER}. This does <em>not</em> have
208 * {@link Intent#FLAG_ACTIVITY_NEW_TASK FLAG_ACTIVITY_NEW_TASK} set,
209 * though typically you will want to do that through {@link Intent#addFlags(int) addFlags(int)}
210 * on the returned Intent.
212 * @param mainActivity The main activity component that this Intent will
214 * @return Returns a newly created Intent that can be used to launch the
217 * @see Intent#setClass
218 * @see Intent#setComponent
220 public static Intent makeMainActivity(ComponentName mainActivity) {
226 * Make an Intent for the main activity of an application, without
228 * the activity. This results in a final Intent that is structured
231 * same way, it is important that they use an Intent structured the same
234 * <p>The returned Intent has {@link Intent#ACTION_MAIN} as its action, and includes the
235 * category {@link Intent#CATEGORY_LAUNCHER}. This does <em>not</em> have
236 * {@link Intent#FLAG_ACTIVITY_NEW_TASK} set, though typically you will want
237 * to do that through {@link Intent#addFlags(int)} on the returned Intent.
239 * @param selectorAction The action name of the Intent's selector.
240 * @param selectorCategory The name of a category to add to the Intent's
242 * @return Returns a newly created Intent that can be used to launch the
245 * @see #setSelector(Intent)
247 public static Intent makeMainSelectorActivity(String selectorAction,
253 * Make an Intent that can be used to re-launch an application's task
255 * but also sets the flags {@link Intent#FLAG_ACTIVITY_NEW_TASK} and
262 * @return Returns a newly created Intent that can be used to relaunch the
265 public static Intent makeRestartActivityTask(ComponentName mainActivity) {