DEV Community

Discussion on: How to make a native Android app that can block phone calls

Collapse
 
kaushal7171 profile image
kaushal raykar

hello,i use this code but its not working for me,i used oneplus5 phone.in logcat its show ClassCastException for this line= telephonyService = (ITelephony) m.invoke(tm);

Collapse
 
nikola profile image
Nikola Brežnjak

Did you add it through reflection as noted in the post?