I have developed one code to edit contact but it is not working in the android 4.0 and above. Activity of edit is starting but closes immediately and backs to the parent activity.Do not know what is the problem, here is my code:
Intent i = new Intent(Intent.ACTION_EDIT);
i.setData(Uri.parse(ContactsContract.Contacts.CONTENT_LOOKUP_URI
+ "/" + contactId[position]));
int REQUEST_CODE = 2;
startActivityForResult(i, REQUEST_CODE);
Any solution will be appreciated.