I’m doing a streaming app and I really need to run this app with a foreground service… I have also to call prepare on a MediaPlayer object instead of prepareAsync because this case on some phone onPrepared event is not fired. This means that Android may show up an ANR message if streaming takes a long time, how can I hide this message? Is this possible?
Thanks in advance
You cannot hide this message. Call
prepare()on a background thread ifprepareAsync()is giving you difficulty.