derez Expert Licensed User Longtime User May 22, 2011 #1 Is it possible to add a contact to the phone's contacts list ? phone intent is only reading it.
derez Expert Licensed User Longtime User May 23, 2011 #2 I found this Hari's Blog , may be with this code it can be done ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User May 24, 2011 #3 You can read contacts with a Contacts object. Currently it is read-only. So adding new contacts is not possible. Upvote 0
You can read contacts with a Contacts object. Currently it is read-only. So adding new contacts is not possible.
O optimist Member Licensed User Longtime User Jun 28, 2011 #4 I want to support this wish. Writable access to contacts would be interesting. TIA Michael Upvote 0
aklisiewicz Active Member Licensed User Longtime User Jun 29, 2011 #5 I would like to ba able to add records to contacts to,... implementation would be more than welcomed ! Arthur Upvote 0
I would like to ba able to add records to contacts to,... implementation would be more than welcomed ! Arthur
O optimist Member Licensed User Longtime User Jun 30, 2011 #6 Erel said: You can read contacts with a Contacts object. Currently it is read-only. So adding new contacts is not possible. Click to expand... Have a lock at my solution. It is possible now http://www.b4x.com/forum/basic4android-share-your-creations/9990-solution-create-contact.html Suggestions welcome. Upvote 0
Erel said: You can read contacts with a Contacts object. Currently it is read-only. So adding new contacts is not possible. Click to expand... Have a lock at my solution. It is possible now http://www.b4x.com/forum/basic4android-share-your-creations/9990-solution-create-contact.html Suggestions welcome.
peacemaker Expert Licensed User Longtime User Oct 9, 2011 #7 Thanks to optimist, but... How to start the custom intent (with pre-selected "putExtras" fields) for adding a contact ? Noting, for example Code: Copy Intent addContactIntent = new Intent(Contacts.Intents.Insert.ACTION, Contacts.People.CONTENT_URI); addContactIntent.putExtra(Contacts.Intents.Insert.NAME, "Jean-Claude"); // an example, there is other data available startActivity(addContactIntent) This try does not work :- Code: Copy Dim i As Intent i.Initialize("android.intent.action.INSERT", "vnd.android.cursor.dir/contact_extensions") StartActivity(i) and gives "No activity found to handle intent" Upvote 0
Thanks to optimist, but... How to start the custom intent (with pre-selected "putExtras" fields) for adding a contact ? Noting, for example Code: Copy Intent addContactIntent = new Intent(Contacts.Intents.Insert.ACTION, Contacts.People.CONTENT_URI); addContactIntent.putExtra(Contacts.Intents.Insert.NAME, "Jean-Claude"); // an example, there is other data available startActivity(addContactIntent) This try does not work :- Code: Copy Dim i As Intent i.Initialize("android.intent.action.INSERT", "vnd.android.cursor.dir/contact_extensions") StartActivity(i) and gives "No activity found to handle intent"
peacemaker Expert Licensed User Longtime User Oct 9, 2011 #8 i.Initialize("com.android.contacts.action.SHOW_OR_CREATE_CONTACT","tel:12345") seems, is helping.... needto check. and understand how to make pre-selected fields Upvote 0
i.Initialize("com.android.contacts.action.SHOW_OR_CREATE_CONTACT","tel:12345") seems, is helping.... needto check. and understand how to make pre-selected fields