title: set orientation of android camera started with intent ACTION_IMAGE_CAPTURE
body: <p>I'm working at an application in android which uses camera to take photos.For starting the camera I'm using an <code>intent</code> <code>ACTION_IMAGE_CAPTURE</code> like this:</p>
  
  <pre><code>Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
          File image=new File(Environment.getExternalStorageDirectory(),"PhotoContest.jpg");
          camera.putExtra(MediaStore.EXTRA_OUTPUT,Uri.fromFile(image));
          imageUri=Uri.fromFile(image);
          startActivityForResult(camera,1);
  
  public void onActivityResult(int requestCode, int resultCode, Intent data){
      super.onActivityResult(requestCode, resultCode, data);
      switch(requestCode){
         case 1:
              if (resultCode == Activity.RESULT_OK) {
                    selectedImage = imageUri;
                    getContentResolver().notifyChange(selectedImage, null);
                    image= (ImageView) findViewById(R.id.imageview);
                    ContentResolver cr = getContentResolver();
                    Bitmap bitmap;
                    try {
                         bitmap = android.provider.MediaStore.Images.Media
                         .getBitmap(cr, selectedImage);
                         image.setImageBitmap(bitmap);
                         Toast.makeText(this, selectedImage.toString(),
                                Toast.LENGTH_LONG).show();
                    } catch (Exception e) {
                        Toast.makeText(this, "Failed to load", Toast.LENGTH_SHORT)
                                .show();
                        Log.e("Camera", e.toString());
                    }
                   }
               else 
  
           if(resultCode == Activity.RESULT_CANCELED) {
                      Toast.makeText(EditPhoto.this, "Picture could not be taken.", Toast.LENGTH_SHORT).show();
                  }
         }
  }
  </code></pre>
  
  <p>The problem is that all the photos that are taken are rotated with 90 degrees-horizontally aligned.</p>
  
  <p>I've also put this into my manifest file:</p>
  
  <pre><code> &lt;activity android:name=".EditPhoto"&gt;
      android:screenOrientation="portrait"
      &lt;/activity&gt;
  </code></pre>
  
  <p>But still with no result!So can anyone help me???</p>