Change FM off button to release media and audio resources.
When FM application is launched, no other Media consuming application can receive key events (play, pause etc.) because FM service is the owner of MediaSession and AudioFocus. This does not bode well for user experience. Change the behaviour of FM off button so that we release MediaSession and AudioFocus so that other applications can work. The same behaviour is enabled when antenna is pulled out. We differentiate FM off from remote bluetooth headset start/stop i.e. when remote headset does start/stop, it starts/stops FM. This means that if user presses FM off button, user has to explicitly turn it on again. Also remove old FM Media Button Intent receiver as it is deprecated. CRs-Fixed: 936190 Change-Id: I32fef8e43b226a260d5483b40f5825926c023e62
Showing
- fmapp2/AndroidManifest.xml 0 additions, 1 deletionfmapp2/AndroidManifest.xml
- fmapp2/src/com/caf/fmradio/FMRadio.java 1 addition, 1 deletionfmapp2/src/com/caf/fmradio/FMRadio.java
- fmapp2/src/com/caf/fmradio/FMRadioService.java 23 additions, 70 deletionsfmapp2/src/com/caf/fmradio/FMRadioService.java
Loading
Please register or sign in to comment