android - How to implement streaming media player as foreground service? -


am trying make streaming mediaplayer. there categories songs , each category contains number of songs. have implemented mediaplayer in service. communication between activity , service have used messages,intents, , runnable. issue app not responding smoothly. swipes , clicks slow. , checking on ram usage , app's ram usage going high on playing songs.

please me out issue,

thanks , regards,

you can check question, has example bind service activity. prefer bind service activity able control player, instead of sending intent or message because takes slighting more time 0.5 - 1 second. had similar question in past, can check it, might you.


Comments