[android-beginners] Re: Why does using People._COUNT cause IllegalArgumentException to be thrown?

2009-09-02 Thread Andruid
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

[android-beginners] Re: Why does using People._COUNT cause IllegalArgumentException to be thrown?

2009-08-29 Thread 장영환
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