Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.92 KB | None | 0 0
  1. public class ExampleActivity extends Activity {
  2.     @Override
  3.     public void onCreate(Bundle savedInstanceState) {
  4.         super.onCreate(savedInstanceState);
  5.         // The activity is being created.
  6.     }
  7.     @Override
  8.     protected void onStart() {
  9.         super.onStart();
  10.         // The activity is about to become visible.
  11.     }
  12.     @Override
  13.     protected void onResume() {
  14.         super.onResume();
  15.         // The activity has become visible (it is now "resumed").
  16.     }
  17.     @Override
  18.     protected void onPause() {
  19.         super.onPause();
  20.         // Another activity is taking focus (this activity is about to be "paused").
  21.     }
  22.     @Override
  23.     protected void onStop() {
  24.         super.onStop();
  25.         // The activity is no longer visible (it is now "stopped")
  26.     }
  27.     @Override
  28.     protected void onDestroy() {
  29.         super.onDestroy();
  30.         // The activity is about to be destroyed.
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement