birnesoft Active Member Licensed User Longtime User Jan 28, 2019 #1 hello, i want to add an adress to my phonebook via intent how can I do this best regards Björn
DonManfred Expert Licensed User Longtime User Jan 28, 2019 #2 I don´t know if this is possible at all. Do you kniw a website where a java code is doing this? Post the link; we may able help you to port it. https://stackoverflow.com/questions/14278587/insert-a-new-contact-intent Upvote 0
I don´t know if this is possible at all. Do you kniw a website where a java code is doing this? Post the link; we may able help you to port it. https://stackoverflow.com/questions/14278587/insert-a-new-contact-intent
birnesoft Active Member Licensed User Longtime User Jan 28, 2019 #3 What's App can do it. I can open an adress to edit, but I need an empty adress intent. B4X: Dim i As Intent i.Initialize(i.ACTION_EDIT, "content://com.android.contacts/contacts/1") '1 is the contact id StartActivity(i) Upvote 0
What's App can do it. I can open an adress to edit, but I need an empty adress intent. B4X: Dim i As Intent i.Initialize(i.ACTION_EDIT, "content://com.android.contacts/contacts/1") '1 is the contact id StartActivity(i)
Erel B4X founder Staff member Licensed User Longtime User Jan 28, 2019 #4 You cannot do it with an intent. Check ContactUtils. Upvote 0
DonManfred Expert Licensed User Longtime User Jan 28, 2019 #5 birnesoft said: but I need an empty adress intent. Click to expand... Here B4X: Sub btnNewContact_Click Dim i As Intent i.Initialize("android.intent.action.INSERT","") i.SetType("vnd.android.cursor.dir/raw_contact") i.PutExtra("finishActivityOnSaveCompleted",True) StartActivity(i) end sub Upvote 0
birnesoft said: but I need an empty adress intent. Click to expand... Here B4X: Sub btnNewContact_Click Dim i As Intent i.Initialize("android.intent.action.INSERT","") i.SetType("vnd.android.cursor.dir/raw_contact") i.PutExtra("finishActivityOnSaveCompleted",True) StartActivity(i) end sub
birnesoft Active Member Licensed User Longtime User Feb 8, 2019 #6 Thanks , it works perfect Upvote 0