java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.alpesh_pc.contactlist/com.example.alpesh_pc.contactlist.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{6970ad0 3833:com.example.alpesh_pc.contactlist/u0a67} (pid=3833, uid=10067) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by alpeshsarvaiya codizious
, 10 months ago
Unable to start activity ComponentInfo{com.example.alpesh_pc.contactlist/com.example.alpesh_pc.contactlist.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from
via GitHub by Valodim
, 2 years ago
Unable to start activity ComponentInfo{org.sufficientlysecure.keychain/org.sufficientlysecure.keychain.ui.ImportKeysActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from
via Stack Overflow by umair khan
, 2 years ago
Unable to start activity ComponentInfo{com.example.umairkhan.test1/com.example.umairkhan.test1.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord
via Stack Overflow by Jra
, 1 year ago
Unable to start activity ComponentInfo{com.example.pc.contentprovider/com.example.pc.contentprovider.ContactsActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from
via Stack Overflow by Torai
, 1 year ago
Unable to start activity ComponentInfo{com.butterfly.the.butterfly/com.butterfly.the.butterfly.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord
via Stack Overflow by Solution Republic
, 2 years ago
Unable to start activity ComponentInfo{com.sr.phonecontactslist/com.sr.phonecontactslist.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{15540fd 5272:com.sr.phonecontactslist/u0a59} (pid=5272, uid=10059) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.alpesh_pc.contactlist/com.example.alpesh_pc.contactlist.MainActivity}: java.lang.SecurityException: Permission Denial: opening provider com.android.providers.contacts.ContactsProvider2 from ProcessRecord{6970ad0 3833:com.example.alpesh_pc.contactlist/u0a67} (pid=3833, uid=10067) requires android.permission.READ_CONTACTS or android.permission.WRITE_CONTACTS
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)

Users with the same issue

Once, 1 month ago
33 times, 2 months ago
8 times, 2 months ago
468 times, 3 months ago
65 times, 5 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.