Lines Matching defs:Activity

88  * activities interact with the user, so the Activity class takes care of
95 * There are two methods almost all subclasses of Activity will implement:
118 * <li><a href="#ActivityLifecycle">Activity Lifecycle</a>
128 * <p>The Activity class is an important part of an application's overall lifecycle,
144 * <p>Starting with {@link android.os.Build.VERSION_CODES#HONEYCOMB}, Activity
150 * <h3>Activity Lifecycle</h3>
180 * <p>The following diagram shows the important state paths of an Activity.
182 * perform operations when the Activity moves between states. The colored
183 * ovals are major states the Activity can be in.</p>
186 * alt="State diagram for an Android Activity Lifecycle." border="0" /></p>
193 * to {@link android.app.Activity#onCreate} through to a single final call
194 * to {@link android.app.Activity#onDestroy}. An activity will do all setup
201 * {@link android.app.Activity#onStart} until a corresponding call to
202 * {@link android.app.Activity#onStop}. During this time the user can see the
213 * {@link android.app.Activity#onResume} until a corresponding call to
214 * {@link android.app.Activity#onPause}. During this time the activity is
223 * Activity methods. All of these are hooks that you can override
225 * activities will implement {@link android.app.Activity#onCreate}
227 * {@link android.app.Activity#onPause} to commit changes to data and
233 * public class Activity extends ApplicationContext {
264 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onCreate onCreate()}</th>
276 * <th colspan="2" align="left" border="0">{@link android.app.Activity#onRestart onRestart()}</th>
284 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStart onStart()}</th>
293 * <th align="left" border="0">{@link android.app.Activity#onResume onResume()}</th>
302 * <tr><th align="left" border="0">{@link android.app.Activity#onPause onPause()}</th>
316 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStop onStop()}</th>
330 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onDestroy onDestroy()}</th>
333 * activity is finishing (someone called {@link Activity#finish} on
337 * Activity#isFinishing} method.</td>
381 * configuration. Because Activity is the primary mechanism for interacting
416 * <p>The {@link android.app.Activity#startActivity}
427 * {@link android.app.Activity#startActivityForResult(Intent, int)}
429 * will come back through your {@link android.app.Activity#onActivityResult}
433 * {@link android.app.Activity#setResult(int)}
439 * parent's <code>Activity.onActivityResult()</code>, along with the integer
446 * public class MyActivity extends Activity {
518 * <p>The Activity class also provides an API for managing internal persistent state
523 * <p>Activity persistent state is managed
539 * public class CalendarActivity extends Activity {
568 * <p>The ability to start a particular Activity can be enforced when it is
575 * <p>When starting an Activity you can set {@link Intent#FLAG_GRANT_READ_URI_PERMISSION
578 * Activity access to the specific URIs in the Intent. Access will remain
579 * until the Activity has finished (it will remain across the hosting
581 * {@link android.os.Build.VERSION_CODES#GINGERBREAD}, if the Activity
594 * memory runs low. As described in <a href="#ActivityLifecycle">Activity
630 * <p>Sometimes an Activity may need to do a long-running operation that exists
634 * the application will it is executing. To accomplish this, your Activity
641 public class Activity extends ContextThemeWrapper
645 private static final String TAG = "Activity";
678 Activity mParent;
781 public final Activity getParent() {
793 * are not available through Activity/Screen.
832 * Window of this Activity to return the currently focused view.
1279 * when an incoming phone call causes the in-call Activity to be automatically
1587 * or null. This method is intended to be used by Activity framework subclasses that control a
1831 * @return The Activity's ActionBar, or null if it does not have one.
2159 * Called when a key shortcut event is not handled by any of the views in the Activity.
2160 * Override this method to implement global key shortcuts for the Activity.
2472 * so that subclasses of Activity don't need to deal with feature codes.
2490 * Activity don't need to deal with feature codes.
2525 * Activity don't need to deal with feature codes.
2567 * so that subclasses of Activity don't need to deal with feature codes.
2599 * Initialize the contents of the Activity's standard options menu. You
2615 * <p>When you add items to the menu, you can implement the Activity's
2690 * along the parent chain requires extra Intent arguments, the Activity subclass
2698 * <p>See the {@link TaskStackBuilder} class and the Activity methods
2703 * @return true if Up navigation completed successfully and this Activity was finished,
2740 public boolean onNavigateUpFromChild(Activity child) {
2972 * will set this Activity as the owner activity on the Dialog.
3092 + "shown via Activity#showDialog");
3096 * Removes any internal references to a dialog managed by this Activity.
3154 * Activity.onSearchRequested() or from an overridden version in any given
3155 * Activity. If your goal is simply to activate search, it is preferred to call
3156 * onSearchRequested(), which may have been overriden elsewhere in your Activity. If your goal
3336 * if there was no Activity found to run the given Intent.
3341 * @param options Additional options for how the Activity should be started.
3422 * @param options Additional options for how the Activity should be started.
3446 Intent fillInIntent, int flagsMask, int flagsValues, Activity activity,
3503 * if there was no Activity found to run the given Intent.
3506 * @param options Additional options for how the Activity should be started.
3552 * if there was no Activity found to run the given Intent.
3555 * @param options Additional options for how the Activity should be started.
3604 * @param options Additional options for how the Activity should be started.
3663 * @param options Additional options for how the Activity should be started.
3716 * @return Returns a boolean indicating whether there was another Activity
3728 * to the next Activity that can handle it. You typically call this in
3735 * @param options Additional options for how the Activity should be started.
3739 * @return Returns a boolean indicating whether there was another Activity
3761 * Same as calling {@link #startActivityFromChild(Activity, Intent, int, Bundle)}
3773 public void startActivityFromChild(Activity child, Intent intent,
3783 * if there was no Activity found to run the given Intent.
3788 * @param options Additional options for how the Activity should be started.
3797 public void startActivityFromChild(Activity child, Intent intent,
3834 * if there was no Activity found to run the given Intent.
3839 * @param options Additional options for how the Activity should be started.
3862 * Same as calling {@link #startIntentSenderFromChild(Activity, IntentSender,
3865 public void startIntentSenderFromChild(Activity child, IntentSender intent,
3874 * Like {@link #startActivityFromChild(Activity, Intent, int)}, but
3879 public void startIntentSenderFromChild(Activity child, IntentSender intent,
3939 * Activity receiving the result access to the specific URIs in the Intent.
3940 * Access will remain until the Activity has finished (it will remain across the hosting
4062 * Cause this Activity to be recreated with a new instance. This results
4063 * in essentially the same flow as when the Activity is created due to
4146 public void finishFromChild(Activity child) {
4180 public void finishActivityFromChild(Activity child, int requestCode) {
4473 protected void onChildTitleChanged(Activity childActivity, CharSequence title) {
4552 * The suggested audio stream will be tied to the window of this Activity.
4553 * If the Activity is switched, the stream set here is no longer the
4700 * Print the Activity's state into the given stream. This gets invoked if
4710 writer.print(prefix); writer.print("Local Activity ");
4788 * Give the Activity a chance to control the UI for an action mode requested
4807 * Notifies the Activity that an action mode has been started.
4808 * Activity subclasses overriding this method should call the superclass implementation.
4817 * Activity subclasses overriding this method should call the superclass implementation.
4922 public boolean navigateUpToFromChild(Activity child, Intent upIntent) {
4930 * Activity subclasses may override this method to modify the Intent returned by
4947 final void setParent(Activity parent) {
4953 Activity parent, String id, NonConfigurationInstances lastNonConfigurationInstances,
4962 CharSequence title, Activity parent, String id,
5021 "Activity " + mComponent.toShortString() +
5066 "Activity " + mComponent.toShortString() +
5085 "Activity " + mComponent.toShortString() +
5098 "Activity " + mComponent.toShortString() +
5111 "Activity " + mComponent.toShortString() +
5149 "Activity " + mComponent.toShortString() +