I make a player that plays music.

What to choose IntentService or Service?

What is usually used for this task?

    1 answer 1

    IntentService - Service extension, designed for long tasks (music is the most that). It will be possible to send intentions (intents) to the IntentService — for example, to interrupt the performance or speed up the playback — this is how you implement it.

    Those. IntentService - the most that is necessary.

    Read more here: http://developer.alexanderklimov.ru/android/theory/intentservice.php

    • one
      IntentServise is not suitable for playing music, because startForeground (id, notification), intended for just this, works crookedly. Answer: simple servise - Alexey