Lines Matching refs:activity

43         Intent getParentActivityIntent(Activity activity);
44 boolean shouldUpRecreateTask(Activity activity, Intent targetIntent);
45 void navigateUpTo(Activity activity, Intent upIntent);
52 public Intent getParentActivityIntent(Activity activity) {
53 String parentName = NavUtils.getParentActivityName(activity);
56 // If the parent itself has no parent, generate a main activity intent.
57 final ComponentName target = new ComponentName(activity, parentName);
59 final String grandparent = NavUtils.getParentActivityName(activity, target);
72 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) {
73 String action = activity.getIntent().getAction();
78 public void navigateUpTo(Activity activity, Intent upIntent) {
80 activity.startActivity(upIntent);
81 activity.finish();
99 public Intent getParentActivityIntent(Activity activity) {
102 Intent result = NavUtilsJB.getParentActivityIntent(activity);
104 result = superGetParentActivityIntent(activity);
109 Intent superGetParentActivityIntent(Activity activity) {
110 return super.getParentActivityIntent(activity);
114 public boolean shouldUpRecreateTask(Activity activity, Intent targetIntent) {
115 return NavUtilsJB.shouldUpRecreateTask(activity, targetIntent);
119 public void navigateUpTo(Activity activity, Intent upIntent) {
120 NavUtilsJB.navigateUpTo(activity, upIntent);
153 * @param sourceActivity The current activity from which the user is attempting to navigate up
172 * @param sourceActivity The current activity from which the user is attempting to navigate up
180 " does not have a parent activity name specified." +
189 * Navigate from sourceActivity to the activity specified by upIntent, finishing sourceActivity
198 * @param sourceActivity The current activity from which the user is attempting to navigate up
206 * Obtain an {@link Intent} that will launch an explicit target activity
213 * @return a new Intent targeting the defined parent activity of sourceActivity
220 * Obtain an {@link Intent} that will launch an explicit target activity
224 * @param context Context for looking up the activity component for sourceActivityClass
226 * @return a new Intent targeting the defined parent activity of sourceActivity
235 // If the parent itself has no parent, generate a main activity intent.
245 * Obtain an {@link Intent} that will launch an explicit target activity
249 * @param context Context for looking up the activity component for the source activity
251 * @return a new Intent targeting the defined parent activity of sourceActivity
259 // If the parent itself has no parent, generate a main activity intent.
270 * Return the fully qualified class name of sourceActivity's parent activity as specified by
271 * a {@link #PARENT_ACTIVITY} <meta-data> element within the activity element in
275 * @return The fully qualified class name of sourceActivity's parent activity or null if
283 // Component name of supplied activity does not exist...?
288 * Return the fully qualified class name of a source activity's parent activity as specified by
289 * a {@link #PARENT_ACTIVITY} <meta-data> element within the activity element in
290 * the application's manifest. The source activity is provided by componentName.
292 * @param context Context for looking up the activity component for the source activity
294 * @return The fully qualified class name of sourceActivity's parent activity or null if