Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为黑莓剧本制作了一个音乐播放器,它工作正常。我的问题是我想将音乐作为后台服务播放,以便用户在其他应用程序之间切换。我的音乐会连续播放..
谢谢
您可以将此行用作应用程序的第一行
QNXSystem.system.inactivePowerMode = QNXSystemPowerMode.THROTTLED;
从现在开始,您的应用程序将在应用程序处于后台以及剧本处于待机状态时播放声音。