Launch the app on an incoming call (Android)

I have an Android app that responds to incoming calls. Now, since the OS disables my application whenever it wants, I need a way to listen to incoming calls and start the application when that happens.

Did BroadcastReceiver help? (same as starting at device reboot)

Any idea?

thank!

+3
source share
2 answers

I think you answered your question. This is exactly what the broadcast receiver is for. If the recipient is registered in your manifest, then the application should not start.

, . , , / .

, BroadcastReceiver onReceive 5 , , - " ". , .

+4

, BroadcastReceiver , , .

0

Source: https://habr.com/ru/post/1776191/


All Articles