3

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?

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
Nrgl
  • 55
  • 4

2 Answers2

2
  1. 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).

  2. 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.

Community
  • 1
  • 1
keldar
  • 6,152
  • 10
  • 52
  • 82
  • 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