orientação @set da câmera do Android começou com a intenção ACTION_IMAGE_CAPTURE [duplicado]

Esta pergunta já tem uma resposta aqui:

Por que uma imagem capturada usando a intenção da câmera é rotacionada em alguns dispositivos no Android? 17 respostas

Estou trabalhando em um aplicativo no Android que usa a câmera para tirar fotos.Para iniciar a câmera, estou usando umintent ACTION_IMAGE_CAPTURE como isso

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();
                }
       }
}

O problema é que todas as fotos tiradas são giradas com 90 graus de alinhamento horizonta

Eu também coloquei isso no meu arquivo de manifesto:

 <activity android:name=".EditPhoto">
    android:screenOrientation="portrait"
    </activity>

Mas ainda sem resultado! Então alguém pode me ajudar ???

questionAnswers(2)

yourAnswerToTheQuestion