Advertisement
Grela

Untitled

Sep 27th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.53 KB | None | 0 0
  1. @Override
  2.     protected void onStart(){
  3.         super.onStart();
  4.         Toast.makeText(getApplicationContext(), "onStart", Toast.LENGTH_LONG).show();
  5.         Log.i(TAG,"onStart");
  6.     }
  7.     @Override
  8.     protected void onResume(){
  9.         super.onResume();
  10.         Toast.makeText(getApplicationContext(), "onResume", Toast.LENGTH_LONG).show();
  11.         Log.i(TAG,"onPause");
  12.     }
  13.     @Override
  14.     protected void onStop(){
  15.         super.onStop();
  16.         Toast.makeText(getApplicationContext(), "onStop", Toast.LENGTH_LONG).show();
  17.         Log.i(TAG,"onStop");
  18.     }
  19.     @Override
  20.     protected void onRestart(){
  21.         super.onRestart();
  22.         Toast.makeText(getApplicationContext(), "onRestart", Toast.LENGTH_LONG).show();
  23.         Log.i(TAG,"onRestart");
  24.     }
  25.     @Override
  26.     protected void onDestroy(){
  27.         super.onDestroy();
  28.         Toast.makeText(getApplicationContext(), "onDestroy", Toast.LENGTH_LONG).show();
  29.         Log.i(TAG,"onDestroy");
  30.     }
  31.     @Override
  32.     protected void onSaveInstanceState(Bundle outState) {
  33.         super.onSaveInstanceState(outState);
  34.         Toast.makeText(getApplicationContext(), "onSaveInstanceState", Toast.LENGTH_LONG).show();
  35.         Log.i(TAG, "onSaveInstanceState");
  36.     }
  37.     @Override
  38.     protected void onRestoreInstanceState(Bundle savedInstanceState) {
  39.         super.onRestoreInstanceState(savedInstanceState);
  40.         Toast.makeText(getApplicationContext(), "onRestoreInstanceState", Toast.LENGTH_LONG).show();
  41.         Log.i(TAG, "onRestoreInstanceState");
  42.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement