[CB-3654] added extern storage permissions so camera works. fixed issue with test page.

This commit is contained in:
Fil Maj 2013-06-17 15:47:34 -07:00
parent a9b79ebb44
commit 4db9a6c813
2 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,9 @@ id="org.apache.cordova.core.CameraLauncher"
<param name="android-package" value="org.apache.cordova.core.CameraLauncher"/>
</feature>
</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" />
</platform>

View File

@ -340,7 +340,7 @@
document.addEventListener("deviceready", function() {
deviceReady = true;
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);
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);