I am using cordova camera plugin. It works fine. But i have two problems. One of them; after i capture photo 2 buttons appear. Their names are "Save" and "Discard". I want to rename them with "confirm" and "Cancel". How can i do this? an other question; after Saving photo, my photo is turning. How can i block this?
Asked
Active
Viewed 1,139 times
2 Answers
2
Save/Discard - you can't do this in the Cordova Camera API presented to you. You'd need to write your own plugin which uses a
SurfaceView
(more detail here).This is a known Android issue - it ignores the
correctOrientation
parameter - I believe however that it uploads the photo in the correct orientation. It just is not shown correctly.
-
for 2. i checked my uploads file. it did not upload the photo in the correct orientation. can i fix it? – Nrgl Jan 30 '14 at 12:08
-
@keidar Thanx for the SurfaceView link. But how exactly is this implemented? Just getting to know android and cordova. – Anish Sep 18 '14 at 12:19
1
after i add correctOrientation in my code, it shown phooto correctly.
navigator.camera.getPicture(photoCaptured,photoCapturedFail, { quality: 50, destinationType: Camera.DestinationType.DATA_URL, correctOrientation: true });

Nrgl
- 55
- 4