Lines Matching refs:activity

31      * Invalidate the activity's options menu, if able.
41 * to give the activity an opportunity to contextually alter the menu
45 * so that items chosen to show as actions may be displayed when the activity
53 * activity state that should cause the options menu to be rebuilt. If the app
59 * @param activity Invalidate the options menu of this activity
62 public static boolean invalidateOptionsMenu(Activity activity) {
64 ActivityCompatHoneycomb.invalidateOptionsMenu(activity);
71 * Start an activity with additional launch information, if able.
74 * control on activity launch animations. Applications can use this method
77 * not exist the activity will be launched normally.</p>
79 * @param activity Context to launch activity from.
80 * @param intent The description of the activity to start.
87 public static void startActivity(Activity activity, Intent intent, Bundle options) {
89 ActivityCompatJB.startActivity(activity, intent, options);
91 activity.startActivity(intent);
96 * Start new activity with options, if able, for which you would like a
100 * control on activity launch animations. Applications can use this method
103 * not exist the activity will be launched normally.</p>
105 * @param activity Origin activity to launch from.
106 * @param intent The description of the activity to start.
108 * onActivityResult() when the activity exits.
115 public static void startActivityForResult(Activity activity, Intent intent, int requestCode, Bundle options) {
117 ActivityCompatJB.startActivityForResult(activity, intent, requestCode, options);
119 activity.startActivityForResult(intent, requestCode);
124 * Finish this activity, and tries to finish all activities immediately below it
130 public static void finishAffinity(Activity activity) {
132 ActivityCompatJB.finishAffinity(activity);
134 activity.finish();