i want to ask a question:

    my code:

       *  String[] strArray = new String[]{*
*        ** **People._ID,*
*        ** **People.NAME,*
*        ** **People.NUMBER*
*        };*
*        *
*        *
*        Uri uri = People.CONTENT_URI;*
*        Cursor cursor = this.managedQuery(uri, strArray, null, null,
People.NAME);*

   and i also set  *<uses-permission
android:name="android.permission.READ_CONTACTS"></uses-permission> *
   in AndroidManifest.xml

   but the app also throw *ERROR/AndroidRuntime(799):
java.lang.SecurityException: *
*Permission Denial: starting Intent { flags=0x10000000
comp={com.app/com.app.Demo} } from null (pid=-1, uid=-1) *
*requires android.permission.READ_CONTACTS*

  how to fix these problem? any suggestion?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to