Camera default destination should be FILE_URI

This commit is contained in:
macdonst 2012-01-05 03:29:08 +08:00
parent b106d2cae8
commit 1d5af102c7
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ Camera.prototype.getPicture = function(successCallback, errorCallback, options)
options.maxResolution = 0; options.maxResolution = 0;
} }
if (options.destinationType === null || typeof options.destinationType === "undefined") { if (options.destinationType === null || typeof options.destinationType === "undefined") {
options.destinationType = Camera.DestinationType.DATA_URL; options.destinationType = Camera.DestinationType.FILE_URI;
} }
if (options.sourceType === null || typeof options.sourceType === "undefined") { if (options.sourceType === null || typeof options.sourceType === "undefined") {
options.sourceType = Camera.PictureSourceType.CAMERA; options.sourceType = Camera.PictureSourceType.CAMERA;

View File

@ -101,7 +101,7 @@ public class CameraLauncher extends Plugin {
try { try {
if (action.equals("takePicture")) { if (action.equals("takePicture")) {
int srcType = CAMERA; int srcType = CAMERA;
int destType = DATA_URL; int destType = FILE_URI;
this.targetHeight = 0; this.targetHeight = 0;
this.targetWidth = 0; this.targetWidth = 0;
this.encodingType = JPEG; this.encodingType = JPEG;