Android Question add adress to phonebook via intent

birnesoft

Active Member
Licensed User
Longtime User
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
Upvote 0

birnesoft

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

DonManfred

Expert
Licensed User
Longtime 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
 
Upvote 0
Top