Saturday, 24 August 2013

Android Media Player using service

Android Media Player using service

i created media player class to play mp3 files ,every thing was fine then
my player stopped playing while it was in backgroud,& i found out that my
problem is i did not create it in service.so i started to read about
service to learn how to create one and use it for my player ,my Question
is : what is the best way for me to communicate between the service and my
application ? should i use the message or send intents or bind it ? I
should also create UI in notification area . i used these examples to
learn but i did not learn how to use the onBind method yet Example:
Communication between Activity and Service using Messaging -
http://www.sapandiwakar.in/technical/tutorial-how-to-manually-create-android-media-player-controls/
.Thanks in advance

No comments:

Post a Comment