I developed an application using Phone Gap version 0.9.3 ...
When I open the camera in my application, it always opens in landscape mode and, when captured, the image returns in landscape format ...
How to change camera mode 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 the manifest, I mentioned:
<activity android:name="com.android.camera.Camera" android:screenOrientation="portrait"> </activity>
Please help me with this ...
android cordova
Sandy09
source share