Created
April 2, 2014 07:24
-
-
Save gokhanbarisaker/9929415 to your computer and use it in GitHub Desktop.
Android Activity onResume from 4.4.2-rc1 KitKat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Called after {@link #onRestoreInstanceState}, {@link #onRestart}, or | |
* {@link #onPause}, for your activity to start interacting with the user. | |
* This is a good place to begin animations, open exclusive-access devices | |
* (such as the camera), etc. | |
* | |
* <p>Keep in mind that onResume is not the best indicator that your activity | |
* is visible to the user; a system window such as the keyguard may be in | |
* front. Use {@link #onWindowFocusChanged} to know for certain that your | |
* activity is visible to the user (for example, to resume a game). | |
* | |
* <p><em>Derived classes must call through to the super class's | |
* implementation of this method. If they do not, an exception will be | |
* thrown.</em></p> | |
* | |
* @see #onRestoreInstanceState | |
* @see #onRestart | |
* @see #onPostResume | |
* @see #onPause | |
*/ | |
protected void onResume() { | |
if (DEBUG_LIFECYCLE) Slog.v(TAG, "onResume " + this); | |
getApplication().dispatchActivityResumed(this); | |
mCalled = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment