Game Development Reference
In-Depth Information
Figure 2.10 Activity Lifecycle
Implementing the Lifecycle Callback Methods
All the methods onCreate(), onResume(), onPause(), onStop(), and onDestroy() in the main
activity override the Super implementation.
@Override
public void onCreate(Bundle savedInstanceState) {
super .onCreate(savedInstanceState);
//Reads user info
heroInfo = readInfo();
getUserId();
Search WWH ::




Custom Search