Hi,
Thanks for your reply.
My code is working now, but I don't know why. I already had the
appropriate permissions as suggested by you. Your suggestion to add
more contacts can't help, since the Uri 'myperson' is not used later
in the code where the exception occurs. So, I'm clueless about why
Hi.
I tried with your code, it works.
Kindly check two things.
1. You should over 23 contacts, because you write Uri myPerson =
ContentUris.withAppendedId( People.CONTENT_URI, 23 );
2. You should write permission code in AndroidManifest.xml like below.
uses-permission
2 matches
Mail list logo