开发者

Running WebView in background?

I have a WebView application that plays music with a flash player and I would like this to continue playing as the user presses the home button and uses other apps. Is there a way to have WebView run in开发者_如何学Python the background and have this behavior? Thanks.


Services are the way music players are generally implemented on android. http://developer.android.com/reference/android/app/Service.html A WebView is a is a something that gets displayed on the screen. Because services work in the background they don't really have UIs Im not sure what you'll have to use to hook up to your online content but your probably going to want to do it from inside a service.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜