private void cancelMissedCallsNotification() {
Object tm =
mContext.getSystemService(Context.TELEPHONY_SERVICE);
Class c = tm.getClass();
Method getTel = null;
try {
getTel =
c.getDeclaredMethod(METHOD_GET_ITELEPHONY, (Class[]) null);
} catch (Exception e) {
e.printStackTrace();
}
getTel.setAccessible(true);
try {
Object r =
getTel.invoke(tm, null); // ITelephony
Class rc =
r.getClass();
Method
getCan = null;
getCan =
rc.getDeclaredMethod(
METHOD_CANCEL_MISSEDCALLS_NOTIFICATION,
(Class[]) null);
Object ro =
getCan.invoke(r, null);
} catch (Exception e) {
e.printStackTrace();
}
}