updated test file

This commit is contained in:
Steven Gill 2013-06-13 17:48:38 -07:00
parent abffce6983
commit ac4e93c86e

View File

@ -33,8 +33,8 @@
<script type="text/javascript" charset="utf-8"> <script type="text/javascript" charset="utf-8">
var deviceReady = false; var deviceReady = false;
var platformId = cordova.require('cordova/platform').id; var platformId = null;
var CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions'); var CameraPopoverOptions = null;
var pictureUrl = null; var pictureUrl = null;
var fileObj = null; var fileObj = null;
var fileEntry = null; var fileEntry = null;
@ -339,6 +339,8 @@
function init() { function init() {
document.addEventListener("deviceready", function() { document.addEventListener("deviceready", function() {
deviceReady = true; deviceReady = true;
platformId = cordova.require('cordova/platform').id;
CameraPopoverOptions = cordova.require('org.apache.cordova.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);