问题
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