【问题标题】:Make J2ME app run in background while another app can still working让 J2ME 应用程序在后台运行,而另一个应用程序仍然可以工作
【发布时间】:2012-09-26 06:01:25
【问题描述】:

如何使 J2ME 应用程序在后台运行,以便另一个应用程序仍然可以工作?

MIDlet 类中,我尝试设置display.setCurrent(null),但是当我在诺基亚设备上尝试时,我无法播放其他应用程序,并且屏幕仅显示退出按钮!

我能做什么?

【问题讨论】:

    标签: java-me background midp lcdui


    【解决方案1】:

    部分手机不支持后台执行 Java ME 应用。假设您的手机确实有它也可以调用 MIDlet.notifyPaused。根据文档:

    Notifies the application management software that the MIDlet does not want to be active and has entered the Paused state.

    但请注意

    If the application pauses itself it will need to call resumeRequest to request to reenter the active state.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-04
      • 1970-01-01
      • 1970-01-01
      • 2012-05-27
      • 1970-01-01
      • 2019-01-30
      相关资源
      最近更新 更多