incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [7/10] adding standard sample app to bada
Date Wed, 18 Jul 2012 23:16:56 GMT
http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/js/index.js
----------------------------------------------------------------------
diff --git a/Res/js/index.js b/Res/js/index.js
new file mode 100644
index 0000000..f3894b8
--- /dev/null
+++ b/Res/js/index.js
@@ -0,0 +1,15 @@
+var app = {
+    initialize: function() {
+        this.bind();
+    },
+    bind: function() {
+        document.addEventListener('deviceready', this.deviceready, false);
+    },
+    deviceready: function() {
+        app.report('deviceready');
+    },
+    report: function(id) {
+        document.querySelector('#' + id + ' .pending').classList.add('hide');
+        document.querySelector('#' + id + ' .complete').classList.remove('hide');
+    }
+};

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/js/sample.js
----------------------------------------------------------------------
diff --git a/Res/js/sample.js b/Res/js/sample.js
deleted file mode 100644
index 5a1fd23..0000000
--- a/Res/js/sample.js
+++ /dev/null
@@ -1,404 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/*
- * Device
- */
-
-function setDeviceInfo() {
-	var deviceInfo = document.getElementById("device");
-	deviceInfo.innerHTML = "device.name: " + device.name +
-	                   "<br />device.cordova: " + device.cordova +
-	                   "<br />device.uuid: " + device.uuid +
-	                   "<br />device.version: " + device.version +
-	                   "<br />device.platform " + device.platform
-	
-}
-
-/*
- * Acceleration
- */
-var accelWatchID = null;
-
-function getCurrentAcceleration() {
-	var successCallback = function(acceleration) {
-		var accelEm = document.getElementById("acceleration");
-		accelEm.innerHTML = "X: "+acceleration.x + " Y: " + acceleration.y + " Z: " + acceleration.z;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(error);
-		document.getElementById("acceleration").innerHTML = "ERROR";
-	};
-	navigator.accelerometer.getCurrentAcceleration(successCallback, errorCallback, null);
-}
-
-function toggleAcceleration() {
-	var accelBtn = document.getElementById("accelBtn");
-	if(accelBtn.innerHTML == "watchAcceleration") {
-		watchAcceleration();
-		accelBtn.innerHTML = "clearWatch";
-	} else {
-		clearAccelerationWatch();
-		accelBtn.innerHTML = "watchAcceleration";
-	}
-}
-
-function watchAcceleration() {
-	var successCallback = function(acceleration) {
-		console.log("watchAcceleration::successCallback");
-		var accelEm = document.getElementById("acceleration");
-		accelEm.innerHTML = "X: "+acceleration.x + " Y: " + acceleration.y + " Z: " + acceleration.z;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(JSON.stringify(error));
-		document.getElementById("acceleration").innerHTML = "ERROR";
-	};
-	accelWatchID = navigator.accelerometer.watchAcceleration(successCallback, errorCallback,
{frequency: 1000});
-	console.log("watchAcceleration "+accelWatchID);
-}
-function clearAccelerationWatch() {
-	if(accelWatchID != null) {
-		navigator.accelerometer.clearWatch(accelWatchID);
-		accelWatchID = null;
-		document.getElementById("acceleration").innerHTML = "";
-		console.log("clearAccelerationWatch");
-	}
-}
-
-/*
- * Geolocation
- */
-
-var geoWatchID = null;
-
-function getCurrentPosition() {
-	var successCallback = function(geolocation) {
-		var geoEm = document.getElementById("geolocation");
-		geoEm.innerHTML = "Latitude: "+geolocation.coords.latitude + " Longitude: " + geolocation.coords.longitude;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(error);
-		var geoEm = document.getElementById("geolocation");
-		geoEm.innerHTML = "ERROR";
-	};
-	navigator.geolocation.getCurrentPosition(successCallback, errorCallback);
-}
-
-function togglePosition() {
-	var geoBtn = document.getElementById("geoBtn");
-	if(geoBtn.innerHTML == "watchPosition") {
-		watchPosition();
-		geoBtn.innerHTML = "clearWatch";
-	} else {
-		clearPositionWatch();
-		geoBtn.innerHTML = "watchPosition";
-	}
-}
-
-function watchPosition() {
-	var successCallback = function(geolocation) {
-		console.log("watchPosition::successCallback");
-		var geoEm = document.getElementById("geolocation");
-		geoEm.innerHTML = "latitude: "+geolocation.coords.latitude + " longitude: " + geolocation.coords.longitude;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(error);
-		var geoEm = document.getElementById("geolocation");
-		geoEm.innerHTML = "ERROR";
-	};
-	geoWatchID = navigator.geolocation.watchPosition(successCallback, errorCallback);
-	console.log("watchPosition "+geoWatchID);
-}
-function clearPositionWatch() {
-	if(geoWatchID != null) {
-		navigator.geolocation.clearWatch(geoWatchID);
-		geoWatchID = null;
-		document.getElementById("geolocation").innerHTML = "";
-		console.log("clearPositionWatch");
-	}
-}
-
-/*
- * Compass
- */
-
-var compassWatchID = null;
-
-function getCurrentHeading() {
-	var successCallback = function(heading) {
-		var headingEm = document.getElementById("heading");
-		headingEm.innerHTML = "magnetic Heading: "+ heading.magneticHeading + 
-		                      " true Heading: " + heading.trueHeading +
-		                      " heading accuracy: " + heading.headingAccuracy +
-		                      " heading timestamp " + heading.timestamp;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(error);
-		var headingEm = document.getElementById("heading");
-		headingEm.innerHTML = "ERROR";
-	};
-	navigator.compass.getCurrentHeading(successCallback, errorCallback);
-}
-
-function toggleCompass() {
-	var geoBtn = document.getElementById("compassBtn");
-	if(geoBtn.innerHTML == "watchHeading") {
-		watchHeading();
-		compassBtn.innerHTML = "clearWatch";
-	} else {
-		clearHeadingWatch();
-		compassBtn.innerHTML = "watchHeading";
-	}
-}
-
-function watchHeading() {
-	var successCallback = function(heading) {
-		console.log("watchHeading::successCallback");
-		var headingEm = document.getElementById("heading");
-		headingEm.innerHTML = "magnetic Heading: "+ heading.magneticHeading + 
-		" true Heading: " + heading.trueHeading +
-		" heading accuracy: " + heading.headingAccuracy +
-		" heading timestamp " + heading.timestamp;
-	};
-	
-	var errorCallback = function(error) {
-		console.log(error);
-		var headingEm = document.getElementById("heading");
-		headingEm.innerHTML = "ERROR";
-	};
-	compassWatchID = navigator.compass.watchHeading(successCallback, errorCallback);
-	console.log("watchHeading "+compassWatchID);
-}
-function clearHeadingWatch() {
-	if(compassWatchID != null) {
-		navigator.compass.clearWatch(compassWatchID);
-		compassWatchID = null;
-		document.getElementById("heading").innerHTML = "";
-		console.log("clearHeadingWatch");
-	}
-}
-
-/*
- * Connection
- */
-
-function getConnection() {
-	var connectionEm = document.getElementById("connection");
-	connectionEm.innerHTML = "Connection type "+navigator.network.connection.type;
-}
-
-/*
- * Notification
- */
-
-function notificationAlert() {
-	var notifEm = document.getElementById('result');
-	var alertDismissed = function() {
-		console.log('alertDismissed');
-	};
-	navigator.notification.alert('You are the winner!', alertDismissed, 'Game Over', 'Done');
-}
-
-function notificationVibrate() {
-	navigator.notification.vibrate(2000);
-}
-
-function notificationBeep() {
-	navigator.notification.beep(4, 2000);
-}
-
-function notificationLightOn() {
-	navigator.notification.lightOn(2000);
-}
-
-function cameraPreview() {
-    var preview = document.getElementById("preview");
-    if(preview.childNodes[0]) {
-    	navigator.camera.hidePreview("preview");
-    	document.getElementById("cameraControls").style.display = "none";
-    } else {
-    	navigator.camera.showPreview("preview");
-    	document.getElementById("cameraControls").style.display = "";
-    }
-}
-
-function startVideoCapture() {
-	var success = function(filename) {console.log(filename); };
-	var fail = function(error) { console.log("ERROR "+JSON.stringify(error)); };
-	navigator.capture.startVideoCapture(success, fail, {duration: 5000, destinationFilename:
"videos/a.3gp"});
-}
-
-function stopVideoCapture() {
-	navigator.capture.stopVideoCapture();
-}
-
-function captureImage2() {
-	var success = function(filename) {
-		console.log(filename);
-	};
-	var fail = function(error) {
-		console.log("ERROR"+JSON.stringify(error));
-	};
-	var options = { destinationFilename: "images/cam01.jpg", highRes: false};
-	navigator.capture.captureImage(success, fail, options);
-}
-
-function getPicture() {
-	var success = function(imageURI) {
-		var i;
-		var media = document.getElementById("media");
-		var image = document.createElement("img");
-		image.src = imageURI;
-		image.style.width = "256px";
-		media.appendChild(image);
-	};
-	var fail = function(error) {
-		console.log("ERROR"+JSON.stringify(error));
-	};
-	navigator.camera.getPicture(success, fail, {});	
-}
-
-function captureImage() {
-	var success = function(mediaFiles) {
-		var i;
-		var media = document.getElementById("media");
-		for(i = 0 ; i < mediaFiles.length ; i += 1) {
-			var image = document.createElement("img");
-			image.src = mediaFiles[i].fullPath;
-			image.style.width = "256px";
-			media.appendChild(image);
-		}
-	};
-	var fail = function(error) {
-		console.log("ERROR"+JSON.stringify(error));
-	};
-	navigator.device.capture.captureImage(success, fail);
-}
-
-function captureVideo() {
-	var success = function(mediaFiles) {
-		var i;
-		var media = document.getElementById("media");
-		for(i = 0 ; i < mediaFiles.length ; i += 1) {
-			console.log(mediaFiles[i].fullPath);
-		}
-	};
-	var fail = function(error) {
-		console.log(error);
-	};
-	navigator.device.capture.captureVideo(success, fail);
-}
-
-function createContact() {
-	function onSuccess(contact) {
-	    alert("Save Success "+JSON.stringify(contact));
-	};
-
-	function onError(contactError) {
-	    alert("Error = " + contactError.code);
-	};
-
-	// create a new contact object
-	var contact = navigator.contacts.create();
-	contact.displayName = "Plumber";
-	contact.nickname = "Plumber";       //specify both to support all devices
-
-	// populate some fields
-	var name = new ContactName();
-	name.givenName = "Jackson";
-	name.familyName = "Doe";
-	contact.name = name;
-
-	// save to device
-	contact.save(onSuccess,onError);
-}
-
-function findContact() {	
-	function onSuccess(contacts) {
-		alert(JSON.stringify(contacts));
-	    alert('Found ' + contacts.length + ' contacts.');
-	};
-
-	function onError(contactError) {
-	    alert('onError!');
-	};
-
-	var options = new ContactFindOptions();
-	options.filter="Jane"; 
-	var fields = ["displayName", "name"];
-	navigator.contacts.find(fields, onSuccess, onError, options);
-
-}
-
-function updateContact() {
-	function onSuccess(contact) {
-	    alert("Save Success "+JSON.stringify(contact));
-	};
-
-	function onError(contactError) {
-	    alert("Error = " + contactError.code);
-	};
-
-	// create a new contact object
-	var contact = navigator.contacts.create();
-	contact.displayName = "Plumber";
-	contact.nickname = "Plumber";       //specify both to support all devices
-
-	// populate some fields
-	var name = new ContactName();
-	name.givenName = "Jane";
-	name.familyName = "Doe";
-	contact.name = name;
-
-	// save to device
-	contact.save(onSuccess,onError);
-	
-	// update
-	name.givenName = "John";
-	contact.name = name;
-	contact.save(onSuccess,onError);
-}
-
-function removeContact() {
-	function onSuccess(contacts) {
-		var i, j;
-		var success = function(c) {
-			alert('contact removed!');
-		};
-		var error = function(c) {
-			alert('error removing');
-		};
-		for(i = 0, j = contacts.length ; i < j ; i++) {
-			contacts[i].remove(success, error);
-		}
-	};
-
-	function onError(contactError) {
-	    alert('onError!');
-	};
-	var options = new ContactFindOptions();
-	options.filter="Doe"; 
-	var fields = ["displayName", "name"];
-	navigator.contacts.find(fields, onSuccess, onError, options);	
-}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_128.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_128.png b/Res/res/icon/cordova_128.png
new file mode 100644
index 0000000..3516df3
Binary files /dev/null and b/Res/res/icon/cordova_128.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_16.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_16.png b/Res/res/icon/cordova_16.png
new file mode 100644
index 0000000..54e19c5
Binary files /dev/null and b/Res/res/icon/cordova_16.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_24.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_24.png b/Res/res/icon/cordova_24.png
new file mode 100644
index 0000000..c7d43ad
Binary files /dev/null and b/Res/res/icon/cordova_24.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_256.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_256.png b/Res/res/icon/cordova_256.png
new file mode 100644
index 0000000..e1cd0e6
Binary files /dev/null and b/Res/res/icon/cordova_256.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_32.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_32.png b/Res/res/icon/cordova_32.png
new file mode 100644
index 0000000..734fffc
Binary files /dev/null and b/Res/res/icon/cordova_32.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_48.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_48.png b/Res/res/icon/cordova_48.png
new file mode 100644
index 0000000..8ad8bac
Binary files /dev/null and b/Res/res/icon/cordova_48.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_512.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_512.png b/Res/res/icon/cordova_512.png
new file mode 100644
index 0000000..c9465f3
Binary files /dev/null and b/Res/res/icon/cordova_512.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_64.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_64.png b/Res/res/icon/cordova_64.png
new file mode 100644
index 0000000..03b3849
Binary files /dev/null and b/Res/res/icon/cordova_64.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_android_36.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_android_36.png b/Res/res/icon/cordova_android_36.png
new file mode 100644
index 0000000..cd5032a
Binary files /dev/null and b/Res/res/icon/cordova_android_36.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_android_48.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_android_48.png b/Res/res/icon/cordova_android_48.png
new file mode 100644
index 0000000..e79c606
Binary files /dev/null and b/Res/res/icon/cordova_android_48.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_android_72.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_android_72.png b/Res/res/icon/cordova_android_72.png
new file mode 100644
index 0000000..4d27634
Binary files /dev/null and b/Res/res/icon/cordova_android_72.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_android_96.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_android_96.png b/Res/res/icon/cordova_android_96.png
new file mode 100644
index 0000000..ec7ffbf
Binary files /dev/null and b/Res/res/icon/cordova_android_96.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_bb_80.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_bb_80.png b/Res/res/icon/cordova_bb_80.png
new file mode 100644
index 0000000..f86a27a
Binary files /dev/null and b/Res/res/icon/cordova_bb_80.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_ios_114.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_ios_114.png b/Res/res/icon/cordova_ios_114.png
new file mode 100644
index 0000000..efd9c37
Binary files /dev/null and b/Res/res/icon/cordova_ios_114.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_ios_144.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_ios_144.png b/Res/res/icon/cordova_ios_144.png
new file mode 100644
index 0000000..dd819da
Binary files /dev/null and b/Res/res/icon/cordova_ios_144.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_ios_57.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_ios_57.png b/Res/res/icon/cordova_ios_57.png
new file mode 100644
index 0000000..c795fc4
Binary files /dev/null and b/Res/res/icon/cordova_ios_57.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/icon/cordova_ios_72.png
----------------------------------------------------------------------
diff --git a/Res/res/icon/cordova_ios_72.png b/Res/res/icon/cordova_ios_72.png
new file mode 100644
index 0000000..b1cfde7
Binary files /dev/null and b/Res/res/icon/cordova_ios_72.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_hdpi_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_hdpi_landscape.png b/Res/res/screen/android_hdpi_landscape.png
new file mode 100644
index 0000000..a61e2b1
Binary files /dev/null and b/Res/res/screen/android_hdpi_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_hdpi_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_hdpi_portrait.png b/Res/res/screen/android_hdpi_portrait.png
new file mode 100644
index 0000000..5d6a28a
Binary files /dev/null and b/Res/res/screen/android_hdpi_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_ldpi_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_ldpi_landscape.png b/Res/res/screen/android_ldpi_landscape.png
new file mode 100644
index 0000000..f3934cd
Binary files /dev/null and b/Res/res/screen/android_ldpi_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_ldpi_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_ldpi_portrait.png b/Res/res/screen/android_ldpi_portrait.png
new file mode 100644
index 0000000..65ad163
Binary files /dev/null and b/Res/res/screen/android_ldpi_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_mdpi_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_mdpi_landscape.png b/Res/res/screen/android_mdpi_landscape.png
new file mode 100644
index 0000000..a1b697c
Binary files /dev/null and b/Res/res/screen/android_mdpi_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_mdpi_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_mdpi_portrait.png b/Res/res/screen/android_mdpi_portrait.png
new file mode 100644
index 0000000..ea15693
Binary files /dev/null and b/Res/res/screen/android_mdpi_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_xhdpi_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_xhdpi_landscape.png b/Res/res/screen/android_xhdpi_landscape.png
new file mode 100644
index 0000000..79f2f09
Binary files /dev/null and b/Res/res/screen/android_xhdpi_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/android_xhdpi_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/android_xhdpi_portrait.png b/Res/res/screen/android_xhdpi_portrait.png
new file mode 100644
index 0000000..c2e8042
Binary files /dev/null and b/Res/res/screen/android_xhdpi_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/blackberry_transparent_300.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/blackberry_transparent_300.png b/Res/res/screen/blackberry_transparent_300.png
new file mode 100644
index 0000000..b548bdc
Binary files /dev/null and b/Res/res/screen/blackberry_transparent_300.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/blackberry_transparent_400.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/blackberry_transparent_400.png b/Res/res/screen/blackberry_transparent_400.png
new file mode 100644
index 0000000..3facdf9
Binary files /dev/null and b/Res/res/screen/blackberry_transparent_400.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/ipad_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/ipad_landscape.png b/Res/res/screen/ipad_landscape.png
new file mode 100644
index 0000000..04be5ac
Binary files /dev/null and b/Res/res/screen/ipad_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/ipad_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/ipad_portrait.png b/Res/res/screen/ipad_portrait.png
new file mode 100644
index 0000000..41e839d
Binary files /dev/null and b/Res/res/screen/ipad_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/ipad_retina_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/ipad_retina_landscape.png b/Res/res/screen/ipad_retina_landscape.png
new file mode 100644
index 0000000..95c542d
Binary files /dev/null and b/Res/res/screen/ipad_retina_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/ipad_retina_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/ipad_retina_portrait.png b/Res/res/screen/ipad_retina_portrait.png
new file mode 100644
index 0000000..aae1862
Binary files /dev/null and b/Res/res/screen/ipad_retina_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/iphone_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/iphone_landscape.png b/Res/res/screen/iphone_landscape.png
new file mode 100644
index 0000000..d154883
Binary files /dev/null and b/Res/res/screen/iphone_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/iphone_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/iphone_portrait.png b/Res/res/screen/iphone_portrait.png
new file mode 100644
index 0000000..6fcba56
Binary files /dev/null and b/Res/res/screen/iphone_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/iphone_retina_landscape.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/iphone_retina_landscape.png b/Res/res/screen/iphone_retina_landscape.png
new file mode 100644
index 0000000..0165669
Binary files /dev/null and b/Res/res/screen/iphone_retina_landscape.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/iphone_retina_portrait.png
----------------------------------------------------------------------
diff --git a/Res/res/screen/iphone_retina_portrait.png b/Res/res/screen/iphone_retina_portrait.png
new file mode 100644
index 0000000..bd24886
Binary files /dev/null and b/Res/res/screen/iphone_retina_portrait.png differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/res/screen/windows_phone_portrait.jpg
----------------------------------------------------------------------
diff --git a/Res/res/screen/windows_phone_portrait.jpg b/Res/res/screen/windows_phone_portrait.jpg
new file mode 100644
index 0000000..9f95387
Binary files /dev/null and b/Res/res/screen/windows_phone_portrait.jpg differ

http://git-wip-us.apache.org/repos/asf/incubator-cordova-bada-wac/blob/1bf09f15/Res/sample/index.html
----------------------------------------------------------------------
diff --git a/Res/sample/index.html b/Res/sample/index.html
new file mode 100644
index 0000000..5ce902c
--- /dev/null
+++ b/Res/sample/index.html
@@ -0,0 +1,167 @@
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+   http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+    <meta name="viewport" content="target-densitydpi=high-dpi, user-scalable=no" />
+    <title>Cordova Sample</title>
+    <script type="text/javascript" src="./js/cordova.js"></script>
+    <style type="text/css">
+    button.btn {
+                color:#050;
+                font: bold 24px 'trebuchet ms',helvetica,sans-serif;
+                background-color:#fed;
+                width: 400px;
+                height: 100px;
+                border: 1px solid;
+                border-color: #696 #363 #363 #696;
+                /* filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffffffff',EndColorStr='#ffeeddaa');
*/ 
+              } 
+              
+              button.btn2 {
+                color:#050;
+                font: bold 24px 'trebuchet ms',helvetica,sans-serif;
+                background-color:#fed;
+                width: 200px;
+                height: 100px;
+                border: 1px solid;
+                border-color: #696 #363 #363 #696;
+                /* filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr='#ffffffff',EndColorStr='#ffeeddaa');
*/ 
+              } 
+    </style>
+    <link href="osp://webapp/css/style.css" rel="stylesheet" type="text/css" />f
+    <script type="text/javascript" src="osp://webapp/js/webapp_core.js"> </script>
+    <script type="text/javascript" src="osp://webapp/js/webapp_ui.js"> </script>
+    <script>
+        document.addEventListener("deviceready", function(e) {alert('Cordova is ready');});
+    </script>
+</head>
+<body>
+    <ul>
+        <li>
+            <h3>Device</h3>
+            <div><button type="button" class="btn" onclick="setDeviceInfo()">DeviceInfo</button></div>
+            <span id="device"></span>
+        </li>
+        <li>
+            <h3>Acceleration</h3>
+            <div>
+                <button type="button" class="btn" onclick="getCurrentAcceleration();">getCurrentAcceleration</button>
+            </div>
+            <div>
+                <button type="button" class="btn" id="accelBtn" onclick="toggleAcceleration();">watchAcceleration</button>
+            </div>
+            <div>
+                <span id="acceleration"></span>
+            </div>
+        </li>
+        <li>
+            <h3>Geolocation</h3>
+            <div>
+                <button type="button" class="btn" onclick="getCurrentPosition();">getCurrentPosition</button>
+            </div>
+            <div>
+                <button type="button" class="btn" id="geoBtn" onclick="togglePosition();">watchPosition</button>
+            </div>
+            <div>
+                <span id="geolocation"></span>
+            </div>
+        </li>
+        <li>
+            <h3>Compass</h3>
+            <div>
+                <button type="button" class="btn" onclick="getCurrentHeading();">getCurrentHeading</button>
+            </div>
+            <div>
+                <button type="button" class="btn" id="compassBtn" onclick="toggleCompass();">watchHeading</button>
+            </div>
+            <div>
+                <span id="heading"></span>
+            </div>
+        </li>
+        <li>
+            <h3>Connection</h3>
+            <div>
+                <button type="button" class="btn" onclick="getConnection();">getConnectionType</button>
+            </div>
+            <div>
+                <span id="connection"></span>
+            </div>
+        </li>
+        <li>
+            <h3>Notifications</h3>
+            <div>
+                <button type="button" class="btn" onclick="notificationAlert();">Alert</button>
+            </div>
+            <div>
+                <button type="button" class="btn" onclick="notificationAlert();">Confirm</button>
+            </div>
+            <div>
+                <button type="button" class="btn" onclick="notificationVibrate();">Vibrate</button>
+            </div>
+            <div>
+                <button type="button" class="btn" onclick="notificationBeep();">Beep</button>
+            </div>
+            <div>
+                <button type="button" class="btn" onclick="notificationLightOn();">Light
ON</button>
+            </div>
+        </li>
+        <li>
+            <h3>Camera</h3>
+            <div>
+                <button type="button" class="btn" onclick="cameraPreview();">cameraPreview</button>
+            </div>
+            <div id="cameraControls" style="display:none;">
+                <span>
+                    <button type="button" class="btn2" onclick="startVideoCapture();">startVideoCapture</button>
+                    <button type="button" class="btn2" onclick="stopVideoCapture();">stopVideoCapture</button>
+                </span>
+                <div>
+                    <button type="button" class="btn" onclick="captureImage2();">captureImage</button>
+                </div>
+            </div>
+            <div id="preview"></div>
+        </li>
+        <li>
+            <h3>Capture</h3>
+            <div>
+            	<button type="button" class="btn" onclick="captureImage();">captureImage</button>
+            	<button type="button" class="btn" onclick="captureVideo();">captureVideo</button>
+            	<button type="button" class="btn" onclick="getPicture();">getPicture</button>
+            </div>
+            <div id="media">
+            </div>
+        </li>
+        <li>
+        	<h3>Contacts</h3>
+        	<div>
+        		<button type="button" class="btn" onclick="createContact();">createContact</button>
+        		<button type="button" class="btn" onclick="findContact();">findContact</button>
+        		<button type="button" class="btn" onclick="updateContact();">updateContact</button>
+        		<button type="button" class="btn" onclick="removeContact();">removeContacts</button>
+        	</div>
+        </li>
+    </ul>
+    <script type="text/javascript" src="./js/sample.js"></script>
+</body>
+</html>


Mime
View raw message