代码之家  ›  专栏  ›  技术社区  ›  Tiktac

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

  •  1
  • Tiktac  · 技术社区  · 12 年前

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

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

    我能做什么?

    1 回复  |  直到 12 年前
        1
  •  2
  •   hasanghaforian    12 年前

    有些手机不支持后台执行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.