Android Question add adress to phonebook via intent

birnesoft

Active Member
Licensed User
hello,

i want to add an adress to my phonebook via intent

how can I do this

best regards

Björn
 

birnesoft

Active Member
Licensed User
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)
 

DonManfred

Expert
Licensed User
but I need an empty adress intent.
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
 
Top