2011年11月3日 星期四

[Android] SecurityException: Neither user 10043 nor current process has android.permission.READ_PROFILE.

Error Message

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{.ContactProfileTestActivity}: java.lang.SecurityException: Neither user 10043 nor current process has android.permission.READ_PROFILE.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
at android.app.ActivityThread.access$600(ActivityThread.java:122)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4340)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.SecurityException: Neither user 10043 nor current process has android.permission.READ_PROFILE.
at android.os.Parcel.readException(Parcel.java:1327)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:181)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:358)
at android.content.ContentResolver.query(ContentResolver.java:304)
at com.yellow.contact.ContactProfileTestActivity.getProfile(ContactProfileTestActivity.java:30)
at com.yellow.contact.ContactProfileTestActivity.onCreate(ContactProfileTestActivity.java:24)
at android.app.Activity.performCreate(Activity.java:4465)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
... 11 more


Occurred when query ME profile...

1 則留言:

  1. Hi, HAKUNAMATATA,
    I have same problem with yours now. But I dont know hot to do it.
    Can u tell me how you do it? Thanks

    回覆刪除