1. Download our Official Android App: Forums for Android!

Apps Any Permission need to set to make query

Discussion in 'Android Development' started by saranya, Oct 17, 2008.

  1. saranya

    saranya Lurker
    Thread Starter
    Rank:
    None
    Points:
    6
    Posts:
    9
    Joined:
    Oct 17, 2008

    Oct 17, 2008
    9
    1
    6
    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
     

    Advertisement

  2. Rob

    Rob I'm tellin' mommy on you!
    Administrator
    Rank:
     #52
    Points:
    563
    Posts:
    2,084
    Joined:
    Mar 26, 2008

    Mar 26, 2008
    2,084
    3,439
    563
    Androiding
    This is a developer question and I've moved it to the appropriate forum.
     
  3. dfoelber

    dfoelber Lurker
    Rank:
    None
    Points:
    6
    Posts:
    4
    Joined:
    Oct 17, 2008

    Oct 17, 2008
    4
    2
    6

Share This Page

Loading...