// Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false);
// device APIs are available // function onDeviceReady() { var myContact = navigator.contacts.create({"displayName": "Test User"}); myContact.note = "This contact has a note."; console.log("The contact, " + myContact.displayName + ", note: " + myContact.note); }
Recent Comments