android - Music player with all functionalities , play, pause, stop, next , previous using service -


i working on music player app. have created playlist, , want use service component player functions play, pause, previous, next, stop, shuffle etc..

for have found answer @ sending commands service activity , according , there 2 different ways doing this(giving commands service handling music player functions), 1 using local service , using broadcast receiver.

so question that, of following method should choose or best in terms of efficiency , simplicity. , in future versions want add video playing feature, answer accordingly.

thanks.

here link https://github.com/android/platform_packages_apps_music/tree/master/src/com/android/music

every best application of music player using broadcast receiver operations play-pause-stop-next-previous.

create constants , respective action , broadcast them. using service handle them.

handling events via broadcast receiver helpful in handling events notification , widgets via single set of services handling events of play-pause-stop-next-previous.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -