Lines Matching refs:activity

40         Intent getParentActivityIntent(Activity activity);
41 boolean shouldUpRecreateTask(Activity activity, Intent targetIntent);
42 void navigateUpTo(Activity activity, Intent upIntent);
49 public Intent getParentActivityIntent(Activity activity) {
50 String parentActivity = NavUtils.getParentActivityName(activity);
52 return new Intent().setClassName(activity, parentActivity);
56 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) {
57 String action = activity.getIntent().getAction();
62 public void navigateUpTo(Activity activity, Intent upIntent) {
64 activity.startActivity(upIntent);
65 activity.finish();
83 public Intent getParentActivityIntent(Activity activity) {
86 Intent result = NavUtilsJB.getParentActivityIntent(activity);
88 result = super.getParentActivityIntent(activity);
94 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) {
95 return NavUtilsJB.shouldUpRecreateTask(activity, targetIntent);
99 public void navigateUpTo(Activity activity, Intent upIntent) {
100 NavUtilsJB.navigateUpTo(activity, upIntent);
133 * @param sourceActivity The current activity from which the user is attempting to navigate up
152 * @param sourceActivity The current activity from which the user is attempting to navigate up
160 " does not have a parent activity name specified." +
169 * Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity
178 * @param sourceActivity The current activity from which the user is attempting to navigate up
186 * Obtain an {@link Intent} that will launch an explicit target activity
193 * @return a new Intent targeting the defined parent activity of sourceActivity
200 * Obtain an {@link Intent} that will launch an explicit target activity
204 * @param context Context for looking up the activity component for sourceActivityClass
206 * @return a new Intent targeting the defined parent activity of sourceActivity
218 * Obtain an {@link Intent} that will launch an explicit target activity
222 * @param context Context for looking up the activity component for the source activity
224 * @return a new Intent targeting the defined parent activity of sourceActivity
235 * Return the fully qualified class name of sourceActivity's parent activity as specified by
236 * a {@link #PARENT_ACTIVITY} <meta-data> element within the activity element in
240 * @return The fully qualified class name of sourceActivity's parent activity or null if
247 // Component name of supplied activity does not exist...?
252 * Return the fully qualified class name of a source activity's parent activity as specified by
253 * a {@link #PARENT_ACTIVITY} <meta-data> element within the activity element in
254 * the application's manifest. The source activity is provided by componentName.
256 * @param context Context for looking up the activity component for the source activity
258 * @return The fully qualified class name of sourceActivity's parent activity or null if