title: Toast not displaying when orientation is changed why..?
body: <p>I am showing two different layouts on different orientations.</p>
  
  <p>In both I am Toasting a  message that orientation changed.</p>
  
  <p>It showing in toast in portrait but not in landscape why..?</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
          System.out.println("Initial Oriatation is "+display.getOrientation());
          int oriatation = display.getOrientation();
          if(oriatation == 0){
              Toast.makeText(getApplicationContext(), "Changed", Toast.LENGTH_SHORT)
              .show();
              createPort();
              resumePort();
          }else if(oriatation == 1){
              Toast.makeText(getApplicationContext(), "Changed", Toast.LENGTH_SHORT)
              .show();
              createLand();
              resumeLand();
          }
  }
  </code></pre>
  
  <p>Thanks in advance...!</p>