android content observer - onChange method check if last call is missed call or not
I am working on an android app and I need to increment the incoming missed calls. I registered a ContentObserver. How can I check in the onChange method if the call is a missed call or not? I have a contentobserver with the following code: public class IncomingCall extend BroadcastReceiver { public void onReceive( final Context context, Intent intent) { String state= extras.getString(TelephonyManager.EXTRA_STATE); if (TelephonyManager.EXTRA_STATE_IDLE.equals(state)) { context.getApplicationContext().getContentResolver().registerContentObserver(android.provider.CallLog.Calls.CONTENT_URI, true,