ChristopheBoucaut on v1.0.1
ChristopheBoucaut on v1.0.1
ChristopheBoucaut on master
Add description to use camera a… (compare)
ChristopheBoucaut on v1.0.1
ChristopheBoucaut on master
Add description to use camera a… (compare)
ChristopheBoucaut on master
Add description to use camera a… (compare)
ChristopheBoucaut on v1.0.0
ChristopheBoucaut on master
Add package.json for Cordova 8. (compare)
ChristopheBoucaut on master
Update cordova's paths in the h… (compare)
ChristopheBoucaut on master
Remove cordova-plugin-compat to… (compare)
ChristopheBoucaut on v0.2.1
ChristopheBoucaut on add-permissions-camera
ChristopheBoucaut on master
Request permissions to start th… Add error code 4 to permissions… Merge pull request #101 from ge… (compare)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resources>
<string name="app_name">HelloWorld</string>
<string name="launcher_name">@string/app_name</string>
<string name="activity_name">@string/launcher_name</string>
<string name="zoomMin">-</string>
<string name="zoomMax">+</string>
<string name="zoomMin">-</string>
<string name="zoomMax">+</string>
</resources>
Your problem is that the image rendered hasn't same size that the preview from the camera ?
If you changed the layout, you need check here and you need check this method. After, I don't change the preview size, I believe.
Otherwise, you can also take the size of the picture and you will fixe the size for the layout and you keep the ratio. You can get picture size without opening it for limit memory consumption (see stackoverflow).
For the preview, the grey border is here to avoid a stretch of the preview. Indeed, camera resolutions don't match with the screen resolution and with a camera big resolution (for example, with the Nexus 5), the preview is stretched. I didn't find a better solution for this issue for now :/ and the officiel camera on Nexus 5 does the same.