خرید بک لینک

Vote count: 0

I Want delete last outgoing call from callog when call has end.

       Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,CallLog.Calls.DATE + " DESC");

hear i got the last callog but how to delete it??

My sample code in mycallreceiver:

          if (intent.getStringExtra(TelephonyManager.EXTRA_STATE).equals(TelephonyManager.EXTRA_STATE_IDLE))
             {
                 Cursor c=context.getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null,null,null,CallLog.Calls.DATE + " DESC");

              context.getContentResolver().delete(Uri.parse(c),null,null);
           }

Thanks in andvance..

asked 20 secs ago

- - , .
.

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 21 تير 1395 ساعت: 17:57

صفحه بندی