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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -