开发者

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

开发者 https://www.devze.com 2023-03-22 02:56 出处:网络
I have made a music player for blackberry playbook and it is working fine .My problem isI want to play the music as a background service so that if user switches between other app . my music would开发

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

精彩评论

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