title: Can not read propery 'DATA_URL' of undefined type at file:///android_asset/www/apis/camera.js:45
body: <p>I am very much new to phonegap applications but i am an android developer.I am trying to call camera on a button click in my phonegap application.Following is my html where i am calling take_pic() method of camera.js api javascript.I have included camera.js in body after seeing api example only.</p>
  
  <pre><code>&lt;body&gt;
  &lt;label for="hello"&gt;Hello World&lt;/label&gt;
  &lt;br&gt;&lt;input type="submit" id="submit" value="Call Camera" onclick="take_pic();"&gt;
  &lt;script type="text/javascript" charset="utf-8" src="apis/camera.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>following is the method of camera.js which is triggered but it throws "Can not read propery 'DATA_URL' of undefined type at file:///android_asset/www/apis/camera.js:45" error .Please guys help me out.let me know if more details are required</p>
  
  <pre><code>function take_pic() {
    navigator.camera.getPicture(onPhotoDataSuccess, function(ex) {
      alert("Camera Error!");
    }, { quality : 30, destinationType: destinationType.DATA_URL });
  }
  </code></pre>