DW Missed call notification cleaner patch
Jump to navigation
Jump to search
If prompted patch was not successful. Please try the following steps.
- Download the file to your phone.
- Copy it to the directory where the system software. Should be the stock Contacts app in the same directory. Maybe "/system/priv-app/" or "/system/app/".
- Then change the mode of FILE to 644. (Modify file permissions, so any user can read it)
- Restart the phone.
Now the system application manager should be able to see "DW Missed calls notification cleaner". You can now try it. When DW Contact attempt to clear the missed call notification, you should see an alert dialog box.
Use it in your application
- Clear missed call notification
Intent cmc = new Intent("com.dw.intent.action.CLEAR_MISSED_CALL"); startActivity(cmc);
- Getting results
public void clearMissedCallsNotification(long id) { Intent cmc = new Intent("com.dw.intent.action.CLEAR_MISSED_CALL"); cmc.putExtra("CALL_LOG_ID", id);// You can carry custom data startActivityForResult(cmc, RC_CLEAR_MISSED_CALL); } public void onActivityResult(int requestCode, int resultCode, Intent intent) { if (RC_CLEAR_MISSED_CALL == requestCode) { if (resultCode == Activity.RESULT_OK) { return; } long id = 0; if (intent != null) { id = intent.getLongExtra("CALL_LOG_ID", 0);// Get back custom data tryClearMissedCallsNotification(id); } return; } super.onActivityResult(requestCode, resultCode, intent); }