It is necessary to create a program that, on an incoming-outgoing call, shows my activation, and not the standard Androids.
The first one has start and stop buttons for starting and stopping the service, which checks the state of the phone now, and if it is not in standby mode (that is, if getCallState() != TelephonyManager.CALL_STATE_IDLE ), then another activation should be launched and must be during a conversation. And it does not start. It is launched only if during the conversation the start is pressed again. And it is necessary that she appeared herself even during the call. Google advised these lines, but they do not help
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); <action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.PHONE_STATE" /> <action android:name="android.intent.action.NEW_OUTGOING_CALL"/> <action android:name="ru.startandroid.develop.p0972servicebindserver.MyService" /> <action android:name="com.lowveld.ucs.action.INDIRECT_CALL"/> <category android:name="android.intent.category.LAUNCHER" /> I think, most likely, the service code is not where it should be written. But if not in onStartCommand , then where? The last couple of times in general, an endless cycle was thrown there, so that it probably checked all the time, but it did not help.
Maybe in the manifest something needs to be added?