Android mobile phone launch state

I would like to avoid a situation where my application starts immediately after receiving a phone call on the device.

The problem with this situation is that the toolbar and the bar at the bottom are locked and the phone call still rings in the background, but the user cannot access it the way they used to.

The scenario can be easily reproduced by receiving a phone call and then launching the application from the computer.

+3


source to share


1 answer


I'm afraid you have nothing to do with the situation you described.

also it seems that this issue has nothing to do with a specific version of Android, but as a specific default behavior for phone calls that is pre-installed on Nexus 5 running android 4.4.x.

as I've seen on different devices with different versions of Android - I only notice this behavior on Nexus with android 4.4.x. they probably block (with their own system permission) the status bar and discard it only when the phone call activity is destroyed, not when it is suspended.



If this behavior is problematic for you, you can work around this problem - listen for changes in the broadcast state in the phone and, perhaps, decide not to start your activity in case the phone is currently ringing

luck

0


source







All Articles