How to Get total missed call Value fron android Call log?
<p>I want to get Total number of missed call from Call log ,and to set that value in textView</p>

<p>i Saw this code somewhere.. but i am not getting result </p>

<p>public int getMissedCall(){
    String[] projection = { CallLog.Calls.CACHED_NAME, CallLog.Calls.CACHED_NUMBER_LABEL, CallLog.Calls.TYPE };
    String where = CallLog.Calls.TYPE+"="+CallLog.Calls.MISSED_TYPE;<br>
    Cursor c = this.getContentResolver().query(CallLog.Calls.CONTENT_URI, projection,where, null, null);
    c.moveToFirst();<br>
    return c.getCount();
}</p>

<p>I want to get int value.So that that i can set that value in TextView Of my app..</p>

<p>thanks</p>
