Lines Matching defs:Activity

117  * activities interact with the user, so the Activity class takes care of
124 * There are two methods almost all subclasses of Activity will implement:
147 * <li><a href="#ActivityLifecycle">Activity Lifecycle</a>
157 * <p>The Activity class is an important part of an application's overall lifecycle,
173 * <p>Starting with {@link android.os.Build.VERSION_CODES#HONEYCOMB}, Activity
179 * <h3>Activity Lifecycle</h3>
209 * <p>The following diagram shows the important state paths of an Activity.
211 * perform operations when the Activity moves between states. The colored
212 * ovals are major states the Activity can be in.</p>
215 * alt="State diagram for an Android Activity Lifecycle." border="0" /></p>
222 * to {@link android.app.Activity#onCreate} through to a single final call
223 * to {@link android.app.Activity#onDestroy}. An activity will do all setup
230 * {@link android.app.Activity#onStart} until a corresponding call to
231 * {@link android.app.Activity#onStop}. During this time the user can see the
242 * {@link android.app.Activity#onResume} until a corresponding call to
243 * {@link android.app.Activity#onPause}. During this time the activity is
252 * Activity methods. All of these are hooks that you can override
254 * activities will implement {@link android.app.Activity#onCreate}
256 * {@link android.app.Activity#onPause} to commit changes to data and
262 * public class Activity extends ApplicationContext {
293 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onCreate onCreate()}</th>
305 * <th colspan="2" align="left" border="0">{@link android.app.Activity#onRestart onRestart()}</th>
313 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStart onStart()}</th>
322 * <th align="left" border="0">{@link android.app.Activity#onResume onResume()}</th>
331 * <tr><th align="left" border="0">{@link android.app.Activity#onPause onPause()}</th>
345 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStop onStop()}</th>
359 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onDestroy onDestroy()}</th>
362 * activity is finishing (someone called {@link Activity#finish} on
366 * Activity#isFinishing} method.</td>
410 * configuration. Because Activity is the primary mechanism for interacting
445 * <p>The {@link android.app.Activity#startActivity}
456 * {@link android.app.Activity#startActivityForResult(Intent, int)}
458 * will come back through your {@link android.app.Activity#onActivityResult}
462 * {@link android.app.Activity#setResult(int)}
468 * parent's <code>Activity.onActivityResult()</code>, along with the integer
475 * public class MyActivity extends Activity {
547 * <p>The Activity class also provides an API for managing internal persistent state
552 * <p>Activity persistent state is managed
568 * public class CalendarActivity extends Activity {
597 * <p>The ability to start a particular Activity can be enforced when it is
604 * <p>When starting an Activity you can set {@link Intent#FLAG_GRANT_READ_URI_PERMISSION
607 * Activity access to the specific URIs in the Intent. Access will remain
608 * until the Activity has finished (it will remain across the hosting
610 * {@link android.os.Build.VERSION_CODES#GINGERBREAD}, if the Activity
623 * memory runs low. As described in <a href="#ActivityLifecycle">Activity
659 * <p>Sometimes an Activity may need to do a long-running operation that exists
663 * the application will it is executing. To accomplish this, your Activity
670 public class Activity extends ContextThemeWrapper
675 private static final String TAG = "Activity";
712 Activity mParent;
830 public final Activity getParent() {
842 * are not available through Activity/Screen.
860 * Window of this Activity to return the currently focused view.
1477 * when an incoming phone call causes the in-call Activity to be automatically
1869 * or null. This method is intended to be used by Activity framework subclasses that control a
2096 * @return The Activity's ActionBar, or null if it does not have one.
2106 * Activity window.
2111 * Activity's options menu and the navigation button will be wired through the standard
2114 * <p>In order to use a Toolbar within the Activity's window content the application
2117 * @param toolbar Toolbar to set as the Activity's action bar
2121 throw new IllegalStateException("This Activity already has an action bar supplied " +
2509 * Called when a key shortcut event is not handled by any of the views in the Activity.
2510 * Override this method to implement global key shortcuts for the Activity.
2842 * so that subclasses of Activity don't need to deal with feature codes.
2860 * Activity don't need to deal with feature codes.
2895 * Activity don't need to deal with feature codes.
2943 * so that subclasses of Activity don't need to deal with feature codes.
2978 * Initialize the contents of the Activity's standard options menu. You
2994 * <p>When you add items to the menu, you can implement the Activity's
3069 * along the parent chain requires extra Intent arguments, the Activity subclass
3077 * <p>See the {@link TaskStackBuilder} class and the Activity methods
3082 * @return true if Up navigation completed successfully and this Activity was finished,
3124 public boolean onNavigateUpFromChild(Activity child) {
3364 * will set this Activity as the owner activity on the Dialog.
3485 + "shown via Activity#showDialog");
3489 * Removes any internal references to a dialog managed by this Activity.
3579 * Activity.onSearchRequested() or from an overridden version in any given
3580 * Activity. If your goal is simply to activate search, it is preferred to call
3581 * onSearchRequested(), which may have been overridden elsewhere in your Activity. If your goal
3901 * if there was no Activity found to run the given Intent.
3906 * @param options Additional options for how the Activity should be started.
3950 * Cancels pending inputs and if an Activity Transition is to be run, starts the transition.
3952 * @param options The ActivityOptions bundle used to start an Activity.
4099 * @param options Additional options for how the Activity should be started.
4123 Intent fillInIntent, int flagsMask, int flagsValues, Activity activity,
4181 * if there was no Activity found to run the given Intent.
4184 * @param options Additional options for how the Activity should be started.
4230 * if there was no Activity found to run the given Intent.
4233 * @param options Additional options for how the Activity should be started.
4282 * @param options Additional options for how the Activity should be started.
4341 * @param options Additional options for how the Activity should be started.
4399 * @return Returns a boolean indicating whether there was another Activity
4411 * to the next Activity that can handle it. You typically call this in
4418 * @param options Additional options for how the Activity should be started.
4422 * @return Returns a boolean indicating whether there was another Activity
4445 * Same as calling {@link #startActivityFromChild(Activity, Intent, int, Bundle)}
4457 public void startActivityFromChild(@NonNull Activity child, Intent intent,
4467 * if there was no Activity found to run the given Intent.
4472 * @param options Additional options for how the Activity should be started.
4481 public void startActivityFromChild(@NonNull Activity child, Intent intent,
4519 * if there was no Activity found to run the given Intent.
4524 * @param options Additional options for how the Activity should be started.
4569 * Same as calling {@link #startIntentSenderFromChild(Activity, IntentSender,
4572 public void startIntentSenderFromChild(Activity child, IntentSender intent,
4581 * Like {@link #startActivityFromChild(Activity, Intent, int)}, but
4586 public void startIntentSenderFromChild(Activity child, IntentSender intent,
4646 * Activity receiving the result access to the specific URIs in the Intent.
4647 * Access will remain until the Activity has finished (it will remain across the hosting
4808 * on the Activity, so this instance is now dead.
4828 * Cause this Activity to be recreated with a new instance. This results
4829 * in essentially the same flow as when the Activity is created due to
4920 public void finishFromChild(Activity child) {
4925 * Reverses the Activity Scene entry Transition and triggers the calling Activity
4928 * immediately and the Activity exit Transition is run.
4929 * @see android.app.ActivityOptions#makeSceneTransitionAnimation(Activity, android.util.Pair[])
4967 public void finishActivityFromChild(@NonNull Activity child, int requestCode) {
4978 * removed as a part of finishing the Activity.
5035 * Activity through a returning activity transition, giving you the resultCode
5040 * <p>The purpose of this function is to let the called Activity send a hint about
5041 * its state so that this underlying Activity can prepare to be exposed. A call to
5042 * this method does not guarantee that the called Activity has or will be exiting soon.
5043 * It only indicates that it will expose this Activity's Window and it has
5330 protected void onChildTitleChanged(Activity childActivity, CharSequence title) {
5439 * The suggested audio stream will be tied to the window of this Activity.
5440 * Volume requests which are received while the Activity is in the
5470 * The controller will be tied to the window of this Activity. Media key and
5471 * volume events which are received while the Activity is in the foreground
5550 * Print the Activity's state into the given stream. This gets invoked if
5564 writer.print(prefix); writer.print("Local Activity ");
5627 * Convert a translucent themed Activity {@link android.R.attr#windowIsTranslucent} to a
5628 * fullscreen opaque Activity.
5630 * Call this whenever the background of a translucent Activity has changed to become opaque.
5631 * Doing so will allow the {@link android.view.Surface} of the Activity behind to be released.
5636 * @see #convertToTranslucent(android.app.Activity.TranslucentConversionListener,
5655 * Convert a translucent themed Activity {@link android.R.attr#windowIsTranslucent} back from
5658 * Calling this allows the Activity behind this one to be seen again. Once all such Activities
5662 * behind the frontmost Activity will be indeterminate.
5668 * drawn and it is safe to make this Activity translucent again.
5908 * Give the Activity a chance to control the UI for an action mode requested
5946 * Notifies the Activity that an action mode has been started.
5947 * Activity subclasses overriding this method should call the superclass implementation.
5958 * Activity subclasses overriding this method should call the superclass implementation.
6066 public boolean navigateUpToFromChild(Activity child, Intent upIntent) {
6074 * Activity subclasses may override this method to modify the Intent returned by
6105 * When {@link android.app.ActivityOptions#makeSceneTransitionAnimation(Activity,
6106 * android.view.View, String)} was used to start an Activity, <var>callback</var>
6107 * will be called to handle shared elements on the <i>launched</i> Activity. This requires
6110 * @param callback Used to manipulate shared element transitions on the launched Activity.
6120 * When {@link android.app.ActivityOptions#makeSceneTransitionAnimation(Activity,
6121 * android.view.View, String)} was used to start an Activity, <var>callback</var>
6122 * will be called to handle shared elements on the <i>launching</i> Activity. Most
6123 * calls will only come when returning from the started Activity.
6126 * @param callback Used to manipulate shared element transitions on the launching Activity.
6136 * Postpone the entering activity transition when Activity was started with
6137 * {@link android.app.ActivityOptions#makeSceneTransitionAnimation(Activity,
6139 * <p>This method gives the Activity the ability to delay starting the entering and
6140 * shared element transitions until all data is loaded. Until then, the Activity won't
6145 * {@link #startPostponedEnterTransition()} must be called to allow the Activity to
6146 * start the transitions. If the Activity did not use
6147 * {@link android.app.ActivityOptions#makeSceneTransitionAnimation(Activity,
6157 * to have your Activity start drawing.
6165 final void setParent(Activity parent) {
6172 CharSequence title, Activity parent, String id,
6256 "Activity " + mComponent.toShortString() +
6296 "Activity " + mComponent.toShortString() +
6315 "Activity " + mComponent.toShortString() +
6325 "Activity " + mComponent.toShortString() +
6339 "Activity " + mComponent.toShortString() +
6353 "Activity " + mComponent.toShortString() +
6383 "Activity " + mComponent.toShortString() +
6458 * Request to put this Activity in a mode where the user is locked to the
6468 * {@link Activity#stopLockTask()} is called.
6488 * Called to end the mode started by {@link Activity#startLockTask}. This
6522 * Interface for informing a translucent {@link Activity} once all visible activities below it
6523 * have completed drawing. This is necessary only after an {@link Activity} has been made
6524 * opaque using {@link Activity#convertFromTranslucent()} and before it has been drawn
6526 * Activity#convertToTranslucent(android.app.Activity.TranslucentConversionListener,
6534 * Callback made following {@link Activity#convertToTranslucent} once all visible Activities
6536 * Activity translucent because the underlying Activity has been drawn.
6538 * @param drawComplete True if the background Activity has drawn itself. False if a timeout
6539 * occurred waiting for the Activity to complete drawing.
6541 * @see Activity#convertFromTranslucent()
6542 * @see Activity#convertToTranslucent(TranslucentConversionListener, ActivityOptions)
6566 class HostCallbacks extends FragmentHostCallback<Activity> {
6568 super(Activity.this /*activity*/);
6573 Activity.this.dump(prefix, fd, writer, args);
6583 final LayoutInflater result = Activity.this.getLayoutInflater();
6585 return result.cloneInContext(Activity.this);
6597 public Activity onGetHost() {
6598 return Activity.this;
6603 Activity.this.invalidateOptionsMenu();
6609 Activity.this.startActivityFromFragment(fragment, intent, requestCode, options);
6633 Activity.this.onAttachFragment(fragment);
6639 return Activity.this.findViewById(id);