android 4.0.3 ACTION_INSERT_OR_EDIT intent not working

When i try to use this Intent like so....

Intent i = new Intent(Intent.ACTION_INSERT_OR_EDIT);
i.setType(ContactsContract.Contacts.CONTENT_ITEM_TYPE);
startActivityForResult(i,INSERT_CONTACT);

it loads the contact list then after selecting or creating a contact I do not return back to my app. i have checked the logs and nothing stands out. Is there a new intent action in ICS?

Thanks

Answers


Your missing this line:

intent.putExtra(ContactsContract.Intents.Insert.NAME, "Larry Page");

Valid "fields": http://developer.android.com/reference/android/provider/ContactsContract.Intents.Insert.html


Need Your Help

The check keyword not working in sql management studio

sql sql-server sql-server-2005 check-constraints

I have two tables tblA and tblB. And a constraint called tblA_tblB_FK is created between these tables. I wanted to update both columns in tables chained with tblA_tblB_FK constraint. While reading

SQL Temp Tables & Replication

sql sql-server sql-server-2005 replication temp-tables

I have had an issue with our replication process and would like to salvage some data. I have a process in place where I will connect to each subscriber before flagging them for reinitialization an...