I am trying to open phone camera in landscape mode using camera intent and set screen orientation is portrait in manifest file.but i want to open the camera in landscape mode
Asked
Active
Viewed 28 times
0
-
1this link might help: http://stackoverflow.com/questions/9606046/android-rotate-picture-before-saving – nikk Jan 06 '16 at 10:36
-
did you want to create your own camera or you want to use phone's camera in landscape mode – Vivek Mishra Jan 06 '16 at 10:41
-
Google for it first you will find hundreds of example for that – Vivek Mishra Jan 06 '16 at 10:45
-
@VivekMishra i used following code, but not working ` intent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);` – shakthivel Jan 06 '16 at 10:50
-
Post your Complete camera code in your question – Vivek Mishra Jan 06 '16 at 10:53
-
my code is: Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); fileUri = getOutputMediaFileUri(); intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); startActivityForResult(intent, CAMERA_CAPTURE_IMAGE_REQUEST_CODE); – shakthivel Jan 06 '16 at 10:55
-
@shakthivel Hi! Please edit your question with all the relevant details from your comments, then delete the "obsolete" ones. – MattAllegro Jan 06 '16 at 11:05