문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top