title: how to update call logs through android applications
body: <p>I am trying to access call logs through android application. I have taken data through app and update the value of database but after updating I can't get the updated values in call list.</p>
  <p>code I tried below:</p>
  <pre><code>Uri allCalls = Uri.parse(&quot;content://call_log/calls&quot;);
  Cursor c = managedQuery(allCalls, null, null, null, null);     
    
  if (c.moveToFirst()) {
      do {            
          String callType = &quot;&quot;;
          switch (
              Integer.parseInt(c.getString(c.getColumnIndex(Calls.TYPE)))
          ) {
              case 1: callType = &quot;Incoming&quot;;
                  break;
              case 2: callType = &quot;Outgoing&quot;;
                  break;
              case 3: callType = &quot;Missed&quot;;
          }
       } while (c.moveToNext());
    } 
   
    ContentValues values = new ContentValues();
    values.put(&quot;name&quot;, &quot;Unknown&quot;);
    
    int k = getContentResolver().update(allCalls, values,null, null);
   
  </code></pre>
  <p>I got the integer value for k as how many number of rows updated but in call list I didnt get updated value.</p>
  <p>Edit: I am able to insert and delete the call list values and when I check in call list it shows the result as inserting new row or deleting the existing one But when I update the values I can update, it return values as result of update query when I check by clicking callLog list, update value remain for a fraction of second and then old value displaying...</p>
  <p>I don't know where I made a mistake, please help me...</p>