title: Wrong result in takePicture callback method of cordova camera API
body: <p>I have build one worklight application in Worklight v6 which uses cordova API version 2.6</p>
  
  <p>I used the sample provided at this location <a href="http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#Camera" rel="nofollow">http://docs.phonegap.com/en/2.6.0/cordova_camera_camera.md.html#Camera</a>  </p>
  
  <pre><code>navigator.camera.getPicture(OnSuccess,OnFail, {quality:50,destinationType:Camera.DestinationType.NATIVE_URI,sourceType:Camera.PictureSourceType.CAMERA,saveToPhotoAlbum:true});
  </code></pre>
  
  <p>Even when I am using NATIVE_URI result I am getting in OnSuccess method is file:// uri instead of content://uri as written on documentation.</p>
  
  <pre><code>Camera.DestinationType = {
  DATA_URL : 0,                // Return image as base64 encoded string
  FILE_URI : 1,                // Return image file URI
  NATIVE_URI : 2               // Return image native URI (eg. assets-library:// on iOS   or content:// on Android)
  </code></pre>
  
  <p>};</p>
  
  <p>I have added all required permission in menifest xml file.</p>
  
  <pre><code>    &lt;uses-permission android:name="android.permission.CAMERA"/&gt;  
      &lt;uses-feature android:name="android.hardware.camera"/&gt;
  </code></pre>
  
  <p>see the full code here:</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt;
  &lt;html&gt;
          &lt;head&gt;
              &lt;meta charset="UTF-8"&gt;
              &lt;title&gt;testProject&lt;/title&gt;
              &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"&gt;
              &lt;link rel="shortcut icon" href="images/favicon.png"&gt;
              &lt;link rel="apple-touch-icon" href="images/apple-touch-icon.png"&gt;
              &lt;link rel="stylesheet" href="css/testProject.css"&gt;
              &lt;script&gt;window.$ = window.jQuery = WLJQ;&lt;/script&gt;
                  &lt;script type="text/javascript" charset="utf-8"&gt;
  
      var pictureSource;   // picture source
      var destinationType; // sets the format of returned value 
  
      // Wait for Cordova to connect with the device
      //
      document.addEventListener("deviceready",onDeviceReady,false);
  
      // Cordova is ready to be used!
      //
      function onDeviceReady() {
          pictureSource=navigator.camera.PictureSourceType;
          destinationType=navigator.camera.DestinationType;
      }
  
  
      // Called when a photo is successfully retrieved
      //
      function onPhotoURISuccess(imageURI) {
        // Uncomment to view the image file URI 
        alert(imageURI);
  
        // Get image handle
        //
        var largeImage = document.getElementById('largeImage');
  
        // Unhide image elements
        //
        largeImage.style.display = 'block';
  
        // Show the captured photo
        // The inline CSS rules are used to resize the image
        //
        largeImage.src = imageURI;
      }
  
  
  
      // A button will call this function
      //
      function getPhoto(source) {
        // Retrieve image file location from specified source
        navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50, 
          destinationType: destinationType.FILE_URI,
          sourceType: source,saveToPhotoAlbum:true });
      }
  
    function getPhoto2(source) {
        // Retrieve image file location from specified source
        navigator.camera.getPicture(onPhotoURISuccess, onFail, { quality: 50, 
          destinationType: destinationType.NATIVE_URI,
          sourceType: source,saveToPhotoAlbum:true });
      }
      // Called if something bad happens.
      // 
      function onFail(message) {
        alert('Failed because: ' + message);
      }
  
      &lt;/script&gt;
  
          &lt;/head&gt;
          &lt;body id="content" style="display: none;"&gt;
  
          &lt;button onclick="getPhoto(pictureSource.CAMERA);"&gt;Camera&lt;/button&gt;&lt;br&gt;
          &lt;button onclick="getPhoto2(pictureSource.CAMERA);"&gt;From Photo Album&lt;/button&gt;&lt;br&gt;
          &lt;img style="display:none;width:60px;height:60px;" id="smallImage" src="" /&gt;
          &lt;img style="display:none;" id="largeImage" src="" /&gt;
  
  
              &lt;!--application UI goes here--&gt;
              testProject
              &lt;script src="js/initOptions.js"&gt;&lt;/script&gt;
              &lt;script src="js/testProject.js"&gt;&lt;/script&gt;
              &lt;script src="js/messages.js"&gt;&lt;/script&gt;
          &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>