Make J2ME app run in background while another app can still working
-
03-07-2021 - |
문제
How can I make a J2ME application run in the background so that another app can still work?
In the MIDlet
class I tried to set display.setCurrent(null)
, but when I try it on my Nokia device I can't play another app, and the screen only displays an exit button!
What can I do?
해결책
Some phones does not support background execution of Java ME apps. Assuming your phone does have it be sue to also call MIDlet.notifyPaused. According to documentation:
Notifies the application management software that the MIDlet does not want to be active and has entered the Paused state.
But be aware that
If the application pauses itself it will need to call resumeRequest to request to reenter the active state.
제휴하지 않습니다 StackOverflow