开发者

Is there any way to Play music as background service in playbook?

I have made a music player for blackberry playbook and it is working fine .My problem is I want to play the music as a background service so that if user switches between other app . my music would开发者_运维百科 play continuously ..

thanks


You can do it using this line as the first line of your application

QNXSystem.system.inactivePowerMode = QNXSystemPowerMode.THROTTLED;

From now your app will play sound while the app is in background and also when the playbook is on standby state.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜