How to fix DAB+ sound issue played in background
Get the feedback and the modified from Joying Customer, he did a very Good Job, Nice !
Hello Candy,
regarding
DAB+1V1-20160801Sofia.apk and DAB+ audio stuttering/distortions when DAB App is running in background,
especially when another CPU intensive App is starting like a Navigation App.
I previously shared this video https://youtu.be/SYGb5irbi8k and your engineers also confirmed it.
I solved the problem by modifying the DAB+ App. You can find it in the XDA forum here:
I hope you could forward the solution to the company/engineers that develop the DAB+ App (com.ex.dabplayer.pad):
The solution to allow the DAB audio being heard without any problems, even when the DAB+ App is in the background is documented in the Android developers documentation:
“Running a service in the foreground” https://developer.android.com/ guide/components/services. html#Foreground
At a glance:
The Player activity should use startService for the DABService before it binds to it.
The DABService should in its onStartCommand create a Notification and then call startForeground with this Notification and then return START_STICKY
Using this method above ensures that Android gives enough resources (CPU and memory) also in background mode to the DABService.
Best regards,
XXX
Many thanks for the customer's sharing and fixed this issue, hope it can help many other customers. Any confusions pls feel free to contact Joyingde@gmail.com
Joying Facebook: https://www.facebook.com/joyingradio
Joying You Tube: https://www.youtube.com/c/BoykaJoying
Joying Forum: http://www.forum.carjoying.com
Joying Germany: https://www.carjoying.de/
Joying UK: https://www.carjoying.co.uk/
Joying You Tube: https://www.youtube.com/c/BoykaJoying
Joying Forum: http://www.forum.carjoying.com
Joying Germany: https://www.carjoying.de/
Joying UK: https://www.carjoying.co.uk/
评论
发表评论