Java – intentional Android contact information update?
•
Java
I can use putextra to transfer information as additional data to create a new contact with intent. Can I use information to create intent? If the contact is already in the phone book, it will be updated with the new information?
Solution
In fact, you can use intent to create a new contact with contactscontract without discarding it
http://developer.android.com/reference/android/provider/ContactsContract.Intents.Insert.html
Examples for me:
Intent i = new Intent(Intent.ACTION_INSERT_OR_EDIT); i.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE); i.putExtra(Insert.NAME,"TESTTEST"); i.putExtra(Insert.PHONE,"209384"); startActivity(i);
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码