Dear colleagues of this group. I have not been able to solve a problem for several days. I have an application (.apk on Android) that, among other things, allows you to take a photo and upload it to a server. My problem is that in any cell phone it works well but in Samsung phones, the photo is shown rotated with its corresponding deformation. I would like to know if you can help me by commenting on an alternative solution. Use “navigator.camera.getPicture (onPictureReturned, onPictureError, options)” to take the photo.
Thanks PPetree, for your quick response. It is a relief to have some help. I am programming in Basic, should I transform the syntax or can java code be added? Could you give me an example? Very kind for your answer. Regards.
Function success(imageData)
' do something
End Function
Function fail(message)
' do something
End Function
options = {quality: Number(getPhotoQuality()), destinationType: Camera.DestinationType.FILE_URI, correctOrientation: true}
navigator.camera.getPicture(success, fail, options)
Thank you support for your response. It is the code I am using and it works very well. My problem is that in Samsung phones the image is shown rotated and in other phones not. I don’t know if I have to touch any configuration on the cell phone or I can determine the orientation by program. From already thank you very much!
Thanks PPetree for your comment. It has helped me to improve my application, but I have not solved the problem. I am focusing on rotating the image, but now I find out how to determine by software, when a photo is rotated or not. Regards.