Lines Matching defs:Activity

92  * activities interact with the user, so the Activity class takes care of
99 * There are two methods almost all subclasses of Activity will implement:
122 * <li><a href="#ActivityLifecycle">Activity Lifecycle</a>
132 * <p>The Activity class is an important part of an application's overall lifecycle,
148 * <p>Starting with {@link android.os.Build.VERSION_CODES#HONEYCOMB}, Activity
154 * <h3>Activity Lifecycle</h3>
184 * <p>The following diagram shows the important state paths of an Activity.
186 * perform operations when the Activity moves between states. The colored
187 * ovals are major states the Activity can be in.</p>
190 * alt="State diagram for an Android Activity Lifecycle." border="0" /></p>
197 * to {@link android.app.Activity#onCreate} through to a single final call
198 * to {@link android.app.Activity#onDestroy}. An activity will do all setup
205 * {@link android.app.Activity#onStart} until a corresponding call to
206 * {@link android.app.Activity#onStop}. During this time the user can see the
217 * {@link android.app.Activity#onResume} until a corresponding call to
218 * {@link android.app.Activity#onPause}. During this time the activity is
227 * Activity methods. All of these are hooks that you can override
229 * activities will implement {@link android.app.Activity#onCreate}
231 * {@link android.app.Activity#onPause} to commit changes to data and
237 * public class Activity extends ApplicationContext {
268 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onCreate onCreate()}</th>
280 * <th colspan="2" align="left" border="0">{@link android.app.Activity#onRestart onRestart()}</th>
288 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStart onStart()}</th>
297 * <th align="left" border="0">{@link android.app.Activity#onResume onResume()}</th>
306 * <tr><th align="left" border="0">{@link android.app.Activity#onPause onPause()}</th>
320 * <tr><th colspan="2" align="left" border="0">{@link android.app.Activity#onStop onStop()}</th>
334 * <tr><th colspan="3" align="left" border="0">{@link android.app.Activity#onDestroy onDestroy()}</th>
337 * activity is finishing (someone called {@link Activity#finish} on
341 * Activity#isFinishing} method.</td>
385 * configuration. Because Activity is the primary mechanism for interacting
420 * <p>The {@link android.app.Activity#startActivity}
431 * {@link android.app.Activity#startActivityForResult(Intent, int)}
433 * will come back through your {@link android.app.Activity#onActivityResult}
437 * {@link android.app.Activity#setResult(int)}
443 * parent's <code>Activity.onActivityResult()</code>, along with the integer
450 * public class MyActivity extends Activity {
522 * <p>The Activity class also provides an API for managing internal persistent state
527 * <p>Activity persistent state is managed
543 * public class CalendarActivity extends Activity {
572 * <p>The ability to start a particular Activity can be enforced when it is
579 * <p>When starting an Activity you can set {@link Intent#FLAG_GRANT_READ_URI_PERMISSION
582 * Activity access to the specific URIs in the Intent. Access will remain
583 * until the Activity has finished (it will remain across the hosting
585 * {@link android.os.Build.VERSION_CODES#GINGERBREAD}, if the Activity
598 * memory runs low. As described in <a href="#ActivityLifecycle">Activity
634 * <p>Sometimes an Activity may need to do a long-running operation that exists
638 * the application will it is executing. To accomplish this, your Activity
645 public class Activity extends ContextThemeWrapper
649 private static final String TAG = "Activity";
683 Activity mParent;
727 return Activity.this.findViewById(id);
797 public final Activity getParent() {
809 * are not available through Activity/Screen.
848 * Window of this Activity to return the currently focused view.
1295 * when an incoming phone call causes the in-call Activity to be automatically
1641 * or null. This method is intended to be used by Activity framework subclasses that control a
1890 * @return The Activity's ActionBar, or null if it does not have one.
2221 * Called when a key shortcut event is not handled by any of the views in the Activity.
2222 * Override this method to implement global key shortcuts for the Activity.
2534 * so that subclasses of Activity don't need to deal with feature codes.
2552 * Activity don't need to deal with feature codes.
2587 * Activity don't need to deal with feature codes.
2635 * so that subclasses of Activity don't need to deal with feature codes.
2667 * Initialize the contents of the Activity's standard options menu. You
2683 * <p>When you add items to the menu, you can implement the Activity's
2758 * along the parent chain requires extra Intent arguments, the Activity subclass
2766 * <p>See the {@link TaskStackBuilder} class and the Activity methods
2771 * @return true if Up navigation completed successfully and this Activity was finished,
2813 public boolean onNavigateUpFromChild(Activity child) {
3045 * will set this Activity as the owner activity on the Dialog.
3165 + "shown via Activity#showDialog");
3169 * Removes any internal references to a dialog managed by this Activity.
3227 * Activity.onSearchRequested() or from an overridden version in any given
3228 * Activity. If your goal is simply to activate search, it is preferred to call
3229 * onSearchRequested(), which may have been overriden elsewhere in your Activity. If your goal
3409 * if there was no Activity found to run the given Intent.
3414 * @param options Additional options for how the Activity should be started.
3526 * @param options Additional options for how the Activity should be started.
3550 Intent fillInIntent, int flagsMask, int flagsValues, Activity activity,
3608 * if there was no Activity found to run the given Intent.
3611 * @param options Additional options for how the Activity should be started.
3657 * if there was no Activity found to run the given Intent.
3660 * @param options Additional options for how the Activity should be started.
3709 * @param options Additional options for how the Activity should be started.
3768 * @param options Additional options for how the Activity should be started.
3822 * @return Returns a boolean indicating whether there was another Activity
3834 * to the next Activity that can handle it. You typically call this in
3841 * @param options Additional options for how the Activity should be started.
3845 * @return Returns a boolean indicating whether there was another Activity
3868 * Same as calling {@link #startActivityFromChild(Activity, Intent, int, Bundle)}
3880 public void startActivityFromChild(Activity child, Intent intent,
3890 * if there was no Activity found to run the given Intent.
3895 * @param options Additional options for how the Activity should be started.
3904 public void startActivityFromChild(Activity child, Intent intent,
3941 * if there was no Activity found to run the given Intent.
3946 * @param options Additional options for how the Activity should be started.
3969 * Same as calling {@link #startIntentSenderFromChild(Activity, IntentSender,
3972 public void startIntentSenderFromChild(Activity child, IntentSender intent,
3981 * Like {@link #startActivityFromChild(Activity, Intent, int)}, but
3986 public void startIntentSenderFromChild(Activity child, IntentSender intent,
4046 * Activity receiving the result access to the specific URIs in the Intent.
4047 * Access will remain until the Activity has finished (it will remain across the hosting
4163 * on the Activity, so this instance is now dead.
4183 * Cause this Activity to be recreated with a new instance. This results
4184 * in essentially the same flow as when the Activity is created due to
4267 public void finishFromChild(Activity child) {
4301 public void finishActivityFromChild(Activity child, int requestCode) {
4595 protected void onChildTitleChanged(Activity childActivity, CharSequence title) {
4674 * The suggested audio stream will be tied to the window of this Activity.
4675 * If the Activity is switched, the stream set here is no longer the
4822 * Print the Activity's state into the given stream. This gets invoked if
4836 writer.print(prefix); writer.print("Local Activity ");
4889 * Convert a translucent themed Activity {@link android.R.attr#windowIsTranslucent} to a
4890 * fullscreen opaque Activity.
4892 * Call this whenever the background of a translucent Activity has changed to become opaque.
4893 * Doing so will allow the {@link android.view.Surface} of the Activity behind to be released.
4915 * Convert a translucent themed Activity {@link android.R.attr#windowIsTranslucent} back from
4918 * Calling this allows the Activity behind this one to be seen again. Once all such Activities
4922 * behind the frontmost Activity will be indeterminate.
4928 * drawn and it is safe to make this Activity translucent again.
4991 * Give the Activity a chance to control the UI for an action mode requested
5011 * Notifies the Activity that an action mode has been started.
5012 * Activity subclasses overriding this method should call the superclass implementation.
5022 * Activity subclasses overriding this method should call the superclass implementation.
5129 public boolean navigateUpToFromChild(Activity child, Intent upIntent) {
5137 * Activity subclasses may override this method to modify the Intent returned by
5168 final void setParent(Activity parent) {
5174 Activity parent, String id, NonConfigurationInstances lastNonConfigurationInstances,
5183 CharSequence title, Activity parent, String id,
5244 "Activity " + mComponent.toShortString() +
5294 "Activity " + mComponent.toShortString() +
5313 "Activity " + mComponent.toShortString() +
5326 "Activity " + mComponent.toShortString() +
5340 "Activity " + mComponent.toShortString() +
5379 "Activity " + mComponent.toShortString() +
5433 * Interface for informing a translucent {@link Activity} once all visible activities below it
5434 * have completed drawing. This is necessary only after an {@link Activity} has been made
5435 * opaque using {@link Activity#convertFromTranslucent()} and before it has been drawn
5437 * Activity#convertToTranslucent(TranslucentConversionListener)}.
5443 * Callback made following {@link Activity#convertToTranslucent} once all visible Activities
5445 * Activity translucent because the underlying Activity has been drawn.
5447 * @param drawComplete True if the background Activity has drawn itself. False if a timeout
5448 * occurred waiting for the Activity to complete drawing.
5450 * @see Activity#convertFromTranslucent()
5451 * @see Activity#convertToTranslucent(TranslucentConversionListener)