How to completely or partially block lines on an android?

In my application that I am developing, I need to fully use the telephone lines until my application is launched (i.e. I should not receive any call or SMS, and I myself would not have to call or send SMS) and as soon as my application exits the service, it should be returned, offering me a way to do this in advance!

+3
source share
1 answer

I’m not sure that the user of your application may like your action.

If you want to block all calls / sms, try putting the phone in airplane mode. After completing the action, return it from flight mode. See here. How to set AIRPLANE_MODE_ON to "True" or ON? to switch flight mode.

0
source

All Articles