1

画面がロックされている場合でも、アプリに音楽やサウンドを継続的に再生させる簡単な方法はありますか?

4

3 に答える 3

2

You'd probably want to implement a part of your code as a service. The service will continue to run in the background. You can easily start and stop the service from your Activity.

Note: Services may be stopped by the Android OS at any point, but they have a higher priority than standard applications, so this is less likely to happen.

There's a tutorial here: http://marakana.com/forums/android/examples/60.html which does almost exactly what you're trying to do.

于 2013-07-05T12:38:22.023 に答える