Skip to content

Instantly share code, notes, and snippets.

@gokhanbarisaker
Created April 2, 2014 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokhanbarisaker/9929441 to your computer and use it in GitHub Desktop.
Save gokhanbarisaker/9929441 to your computer and use it in GitHub Desktop.
Android Activity onRestart from 4.4.2-rc1 KitKat
/**
* Called after {@link #onStop} when the current activity is being
* re-displayed to the user (the user has navigated back to it). It will
* be followed by {@link #onStart} and then {@link #onResume}.
*
* <p>For activities that are using raw {@link Cursor} objects (instead of
* creating them through
* {@link #managedQuery(android.net.Uri , String[], String, String[], String)},
* this is usually the place
* where the cursor should be requeried (because you had deactivated it in
* {@link #onStop}.
*
* <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 #onStop
* @see #onStart
* @see #onResume
*/
protected void onRestart() {
mCalled = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment