mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-01-31 12:42:50 +08:00
[CB-3654] added extern storage permissions so camera works. fixed issue with test page.
This commit is contained in:
parent
a9b79ebb44
commit
4db9a6c813
@ -26,6 +26,9 @@ id="org.apache.cordova.core.CameraLauncher"
|
|||||||
<param name="android-package" value="org.apache.cordova.core.CameraLauncher"/>
|
<param name="android-package" value="org.apache.cordova.core.CameraLauncher"/>
|
||||||
</feature>
|
</feature>
|
||||||
</config-file>
|
</config-file>
|
||||||
|
<config-file target="AndroidManifest.xml" parent="/*">
|
||||||
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
||||||
|
</config-file>
|
||||||
|
|
||||||
<source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/core" />
|
<source-file src="src/android/CameraLauncher.java" target-dir="src/org/apache/cordova/core" />
|
||||||
</platform>
|
</platform>
|
||||||
|
@ -340,7 +340,7 @@
|
|||||||
document.addEventListener("deviceready", function() {
|
document.addEventListener("deviceready", function() {
|
||||||
deviceReady = true;
|
deviceReady = true;
|
||||||
platformId = cordova.require('cordova/platform').id;
|
platformId = cordova.require('cordova/platform').id;
|
||||||
CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions');
|
CameraPopoverOptions = cordova.require('org.apache.cordova.core.CameraLauncher.CameraPopoverOptions');
|
||||||
console.log("Device="+device.platform+" "+device.version);
|
console.log("Device="+device.platform+" "+device.version);
|
||||||
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
|
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
|
||||||
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);
|
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);
|
||||||
|
Loading…
Reference in New Issue
Block a user