开发者

Hidden Service in Android?

i used the following source in creating a service http://marakana.com/forums/android/examples/60.html

but the thing is, the mp3 file is running, but as soon as i termi开发者_如何学运维nate the application (The gui with the start and stop buttons) the service terminates too !

i dunno if i understood this correctly, but on android developers site it says the following

When a service is started, it has a lifecycle that's independent of the component that started it and the service can run in the background indefinitely, even if the component that started it is destroyed.

shouldn't the sound still be playing even after the application is terminated using any task manager?

sorry, im new to java and android at the same time. thanks.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜