www.gusucode.com > Android service类的应用及源码例子源码程序 > README.txt

    Android service类的应用及源码例子,通过Android service类创建一个音乐服务模块,演示service类的创建、启动和方法使用,以及Service生命周期的说明,该例子继承service 然后重写onStart播放音乐 重写onDestry停止音乐。通过播放一首mp3 ,当用户点击开始“按钮”,音乐开始播放,即时你退出程序音乐也会播放,点击“停止”按钮,停止播放音乐。
Android service class application and source code examples. Create a music service module through the Android service class to demonstrate the creation, startup, and method usage of the service class, and the description of the service life cycle. This example inherits service and then rewrites onStart to play music and rewrites onDestry Stop the music. By playing an mp3, when the user clicks the start "button", the music starts to play. The music will also play when you exit the program. Click the "stop" button to stop playing the music.