0

Am trying to make an streaming MediaPlayer. There is categories for songs and Each category contains number of songs. I have implemented MediaPlayer in Service. For the communication between Activity and Service i have used messages,intents, and runnable. But my issue is that App not responding smoothly. Swipes and Clicks are very slow. And Checking on RAM usage , app's ram usage going high on playing songs.

Please help me out from this issue,

Thanks and regards,

Bincy Baby
  • 3,941
  • 5
  • 36
  • 62
  • use "local bound service" pattern instead of "messages,intents, and runnable", and no, i dont have any example – pskink Sep 26 '15 at 07:04

1 Answers1

0

You can check this question, it has an example to bind service with your activity. Personally I prefer to bind service with activity to be able to control the player, instead of sending intent or message because it takes a slighting more time like 0.5 - 1 second. Also I had a similar question in the past, you can check it, it might help you.

Community
  • 1
  • 1
M.Baraka
  • 725
  • 1
  • 10
  • 24