Hello Everyone,

I am new to the android developemt and building app which takes pictures 
and using Android Native Camera App but Android Camera work looks to be 
complicated because of rotation issues with respect to device 
manufacturers. Some devices code is working fine and some has rotation and 
mirroring issues.

Followed Andorid documentation to write code for launching native camera 
via intent:

http://developer.android.com/training/camera/photobasics.html

 

*Problem: U*sing Andorid Native Camera App for taking pictures from my app 
and launching via intent as mentioned in above link 
(MediaStore.ACTION_IMAGE_CAPTURE) and camera is launched successfully. When 
I click camera button of Native app to take pictures, *image preview is 
mirrored* while taking selfie (left image appears right) which selfie user 
would hate as image preview is not what he clicked.

Second - once image is clicked, it shows image preview and waits for user 
input for acceptance or rejection of picture.

Once image is accepted, OnStartActivityResult (as mentioned in above link) 
function receives the call and saves image to gallery. Strange thing here 
is that: I*mage gets inverted by 180 degre*e and then saved which is very 
weird behaviour.

Finally, two problems here:* Image Preview Mirroing issue before user 
approves and while saving image invert issue (180 degree reverse).*

 

*Device:* Samsung A6 Edge

*Android:* 5.1

*Camera In Manifest File:* Android.hardware.camera2 as Camera is deprecated 
Please advise how can i fix above two issues.

 

Also-* I have another doubt: *Shall i use android native camera app or 
write the code using Camera Framework and launch custom camera? My 
requirement just to click pictures and show preview and save it with 
correct orientation. After searching a lot, I am doubtful - Can native 
camera app fix these issues? but your expert advise can help on this.


Any quick support and guidance on this is highly appreciated. Thanks in 
advance !

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/15a7eef4-58f7-47b8-8d2c-c98cc9310afa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to