j2me running thread while device is in energy saving mode

送分小仙女□ 提交于 2019-12-12 01:55:31

问题


I have created an application which stores a set five different times, at each time i play an audio. I have done this using thread. But the audio does not play when the device is not in active mode. How can i play the audio despite the status of the mobile? In android i have done this using alarm manager. Is there such an option in j2me? Please help with code if you have the solution.


回答1:


If i remember correctly, background operations are not possible in j2me, due to midlet lifecycle. If device is not active the application remains in pause-state.



来源:https://stackoverflow.com/questions/7332576/j2me-running-thread-while-device-is-in-energy-saving-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!