I want to block few mobile numbers from my application.
I mean can receive the blocked mobile number call or message... but want it rejected right away, without the phone ringing.
Is it possible to do this from my application? If it is, please give me some samples..
Class c = Class.forName(telephony.getClass().getName());
Method m = c.getDeclaredMethod("getITelephony");
m.setAccessible(true);
telephonyService = (ITelephony) m.invoke(telephony);
telephonyService.silenceRinger();
telephonyService.endCall();
} catch (Exception e) {
e.printStackTrace();