java - How can I answer a phone call and hang it up? - Stack Overflow

java - How can I answer a phone call and hang it up? - Stack Overflow

瀏覽:328
日期:2025-05-04
I don't think you want to do telephonyService.endCall() in getTeleService(). You probably want to call that within the onReceive method instead. I'm not sure whether you want to reject all calls or only ones from certain numbers. If you are trying to only...看更多