How to start the custom intent (with pre-selected "putExtras" fields) for adding a contact ?
Noting, for example
B4X:
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 :-
B4X:
Dim i As Intent
i.Initialize("android.intent.action.INSERT", "vnd.android.cursor.dir/contact_extensions")
StartActivity(i)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.