I\'m building an app that streams music from a web server. The app has foreground service that uses a MediaPlayer for playback.
My code is based on this example: ht
Could the streaming music be causing the main thread to stop until the music has finished streaming? This could be why it is slowing it right down.
I'm no expert and am currently learning myself, but it's worth thinking about.