Android Question Block Incoming calls


Well-Known Member
Licensed User
Longtime User
Hi all.

Is it possible to block incoming calls? My app synchronizes with a server by using OkHTTPUtils2. Let's say I sent a request and waiting for a JobDone event to get a server response.
At the same time an incoming call received. User accepted this this call and now my app get paused and I've no idea whether my request was processed by the server, what was a response and so on.

So I want to block incoming calls while I sync the data with a server and allow it again after synch finishes. My app is default, not B4XPages.



Licensed User
Longtime User
Upvote 0