This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mindstorm.signaturecapture.services; | |
import java.io.IOException; | |
import java.util.logging.Logger; | |
import javax.servlet.http.*; | |
import com.mindstorm.signaturecapture.dao.SignatureRecordDAO; | |
import com.mindstorm.signaturecapture.utils.AppException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mindstorm.signaturecapture.dao; | |
import java.util.Date; | |
import java.util.List; | |
import javax.jdo.PersistenceManager; | |
import javax.jdo.Query; | |
import com.google.appengine.api.datastore.Text; | |
import com.mindstorm.signaturecapture.entity.SignatureRecord; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mindstorm.signaturecapture.entity; | |
import java.util.Date; | |
import java.util.List; | |
import javax.jdo.annotations.IdGeneratorStrategy; | |
import javax.jdo.annotations.PersistenceCapable; | |
import javax.jdo.annotations.Persistent; | |
import javax.jdo.annotations.PrimaryKey; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var quotes = []; | |
var authors = []; | |
function mBaasInit() { | |
var promise; | |
promise = Kinvey.init({ | |
appKey : 'YOUR_APP_KEY', | |
appSecret : 'YOUR_APP_SECRET' | |
}); | |
promise.then(function(activeUser) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Random Quotes</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Random Quotes", | |
"description": "Quotes app powerd by mBaaS", | |
"launch_path": "/index.html", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function listContents(storagename) { | |
//Clear up the list first | |
$('#results').html(""); | |
var files = navigator.getDeviceStorage(storagename); | |
var cursor = files.enumerate(); | |
cursor.onsuccess = function () { | |
//alert("Got something"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"> | |
<title>Notes</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Device Storage", | |
"description": "This app demonstrates how to use Device Storage", | |
"launch_path": "/index.html", | |
"fullscreen": "false", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
//Shown below are just a few Intents (Web Activities) | |
//Check out https://developer.mozilla.org/en-US/docs/WebAPI/Web_Activities#Firefox_OS_activities | |
$("#btnCall").click(function(){ | |
var call = new MozActivity({ | |
name: "dial", | |
data: { | |
number: "+1231231231" | |
} |