Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MIDlet 如何确定它是手动调用的还是自动调用的?
谢谢!
我可以有一个带有任务 A 和 B 的 MIDLet 子类化带有任务 A 的 MIDLet 并用“A + B”覆盖“A”。自动调用将在子类上。
我认为自动启动是通过 PUSH 注册表实现的。尝试这个:
PushRegistry.listConnections(true);
如果结果不为空,应用程序会自动启动。
http://download.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/io/PushRegistry.html#listConnections%28boolean%29