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.
After researching and made one solution of the above problem is as below:
you just need to use content_uri instead of content_lookup_uri.