• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Any Permission need to set to make query

saranya

Lurker
Oct 17, 2008
9
1
I need to find the outgoing,missed and incoming call from callLog.
My code is like this to get callLog
Context context=getApplicationContext();
Cursor callcur=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI, null, null, null, android.provider.CallLog.Calls.DEFAULT_SORT_ORDER);
It is showing Exception:
Permission Denial: reading com.android.providers.contacts.ContactsProvider uri content://call_log/calls from pid=231, uid=10017 requires android.permission.READ_CONTACTS
Help me to solve this problem
Thanks in advance
Saranya
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones