Пример #1
0
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   super.onConfigurationChanged(newConfig);
   // Checks the orientation of the screen
   if (newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) {
     Toast.makeText(this, "landscape", Toast.LENGTH_SHORT).show();
   } else if (newConfig.orientation == Configuration.ORIENTATION_PORTRAIT) {
     Toast.makeText(this, "portrait", Toast.LENGTH_SHORT).show();
   }
 }
Пример #2
0
 @Override
 public void onFinishExitDialog(boolean exit) {
   if (exit == true) {
     Toast.makeText(this, TAG + "onFinishExitDialog()", Toast.LENGTH_SHORT);
     finish();
   }
 }