Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Your <code>onCreate</code> method is called whenever the Android OS has to "create" your Activity.</p> <p>This will happen on the initial load of your Activity, and also whenever the OS has destroyed your activity voluntarily or if you call the activity's <code>finish()</code> method.</p> <p>The <code>onCreate</code> method is followed by another Activity method called <code>onStart</code>.</p> <p>This will be called when the Activity is now visible to the user.</p> <p>Regarding the <code>onLocationChanged</code> and <code>onTouchEvent</code> implementations, these two types of methods are executed by a listener that is set to the object.</p> <p>For example, <code>onLocationChanged</code> will execute every time your map listener has determined the location has changed.</p> <p>The <code>onTouchEvent</code> will execute any time your view has received a touch event from the user.</p> <p>Your <code>onPause</code> and <code>onResume</code> methods are part of the Activity class, these methods are similar to <code>onCreate</code>, although they are called at different times.</p> <p>Specifically, <code>onPause</code> is called whenever your Activity is not the front, focused view.</p> <p>The <code>onResume</code> method is the opposite of <code>onPause</code> - it will be called when your Activity's view is now the focused view on the screen.</p> <p><a href="http://developer.android.com/training/basics/activity-lifecycle/pausing.html" rel="nofollow">http://developer.android.com/training/basics/activity-lifecycle/pausing.html</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload