I have developed an app using Phone Gap version 0.9.3...
When I open camera in my app ,it always opens in landscape mode and, on capture, the image is returned in landscape format...
How can I change the mode of camera to portrait
navigator.camera.getPicture(onsuccess, fail, {quality: 45,destinationType : Camera.DestinationType.DATA_URL, sourceType: src},img_id);
function onsuccess(imageData) {
localStorage.setItem("image_captured","Yes");
$('#'+imgID).attr('src', 'data:image/jpeg;base64,' + imageData);
$("#"+imgID+"_IMG").attr('src', 'data:image/jpeg;base64,' + imageData);
}
In manifest i had mention:
<activity android:name="com.android.camera.Camera"
android:screenOrientation="portrait">
</activity>
Please help me in this...