I have the following problem on Android,
I have an activity A that launches an Activity B, from activity B I want to add a contact through:
Intent contactIntent = new Intent(ContactsContract.Intents.Insert.ACTION);
contactIntent.setType(ContactsContract.RawContacts.CONTENT_TYPE);
contactIntent
.putExtra(ContactsContract.Intents.Insert.NAME, "Alguien")
.putExtra(ContactsContract.Intents.Insert.PHONE, "541234657");
startActivityForResult(contactIntent, 2);
That launches the contact manager but, when I add the contact and leave, it does not return to activity B that was the one that launched the contact manager, returns to Activity A directly.
Thanks in advance.