javascript - Why phonegap adds contacts in the outlook account? -
this code. im trying add contact android phone. works don't know why contact saved in outlook contacts instead of phone contacts memory. happens im getting error code 0 when try save contact saved anyway.
function onsuccess(contact) { alert("contacto" + txtentguardarcomo.val() + " guardado con correctamente."); }; function onerror(contacterror) { alert("error = " + contacterror.code); }; var contact = navigator.contacts.create(); contact.displayname = txtentguardarcomo.val(); contact.nickname = txtentcontacto.val(); var name = new contactname(); name.givenname = txtentnombre1.val(); name.familyname = txtentnombre2.val(); contact.name = name; contact.save(onsuccess, onerror);
Comments
Post a Comment