title: image is not coming on rotating the screen orientation either from vertical to horizontal or vice versa?
body: <p>i selected one image from the SD card by using the intent and after selecting the image i displayed that image in an image viewer and it is showing but when i am rotating my screen the selected image is not coming,help me??</p>
  
  <p>i used the intent for browsing the screen-</p>
  
  <pre><code>public void onClick(View v) {   
     Intent intent = new Intent();     
     intent.setType("image/*");
     intent.setAction(Intent.ACTION_GET_CONTENT);    
     startActivityForResult(Intent.createChooser(intent, "Choose Key Picture"), PICK_FROM_FILE);
  }
  </code></pre>
  
  <p>and  for showing it</p>
  
  <pre><code>if (requestCode == PICK_FROM_FILE) {        
     mImageCaptureUri = data.getData();
     path = getRealPathFromURI(mImageCaptureUri); 
     if (path == null) {
        path = mImageCaptureUri.getPath(); 
     }
     if (path != null) {
        bitmap  = BitmapFactory.decodeFile(path);
     }
  }
  preview.setImageBitmap(bitmap);   
  </code></pre>