一个Midlet 可以调用另一个Midlet 吗?
我一直在四处寻找this 他们说,如果它们位于同一套件中,或者它们位于同一名称空间和同一 jar 文件中,则一个 Midlet 可以调用另一个 Midlet。
我不明白什么是 Midlet-Suite?
另外,在搜索网络后,我没有找到一个 Midlet 调用另一个 Midlet 的任何文档或代码示例。
I been looking around and at sources like this one they say that a Midlet can invoke another if they are in the same suite, or if they are in the same namespace and in the same jar file.
I do not understand what a Midlet-Suite is?
Also after searching through the web I did not find any documentation or code examples for One Midlet invoking another Midlet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
MIDlet 套件基本上是 JAR 文件。 有许多 J2ME 应用程序在 jar 中包含多个 MIDlet 类,请参阅 WTK 附带的 Sun 的一些示例。
编辑: 有一个名为 MMAPIDemos 的示例,它随 sun 的 WTK 一起提供,在一套套件中使用 3 个 MIDlet。
A MIDlet suite is basically the JAR file. There are many J2ME applications that contain several MIDlet classes in the jar, see some of Sun's examples that come with WTK.
Edit: There's an example called MMAPIDemos that comes with sun's WTK that uses 3 MIDlets in one suite.
其他回复几乎解决了您有关 MIDlet 套件的问题,但我建议您阅读 MIDP 规范以获取第一手信息:
http://www.jcp.org/en/jsr/detail?id=118
在最近的手机上(诺基亚、索尼爱立信和三星的 Series60 第 5 版,其他索尼爱立信手机),内容处理 API (CHAPI) 支持 MIDlet 到 MIdlet 调用。
那是 JSR-211。 您可以在此处阅读相关规范:
http://www.jcp.org /en/jsr/detail?id=211
最新版本的诺基亚 Java 开发人员库将包含更多说明:
http://www.forum.nokia.com/Tools_Docs_and_Code/Documentation/Java/
最新的 JavaME SDK 将包含 CHAPI 代码示例:
http://java.sun.com/javame/downloads/sdk30.jsp
编辑:CHAPI 也可在非-根据诺基亚 Java 开发人员库,Symbian 诺基亚手机从 Series 40 第 5 版、功能包 1 开始。 您可以在以下位置找到运行 Series40 版本的诺基亚手机:
http://www. forum.nokia.com/devices/matrix_all_1.html
The other replies are pretty much taking care of your questions about MIDlet Suites but I would suggest reading the MIDP specification to get the information first-hand:
http://www.jcp.org/en/jsr/detail?id=118
On recent phones (Series60 5th edition from Nokia Sony-Ericsson and Samsung, other Sony-ericsson phones), the Content Handling API (CHAPI) is supported for MIDlet-to-MIdlet invocation.
That's JSR-211. You can read the specification for that here:
http://www.jcp.org/en/jsr/detail?id=211
The latest version of the Nokia Java Developers Library will contain more explanation:
http://www.forum.nokia.com/Tools_Docs_and_Code/Documentation/Java/
The latest JavaME SDK will contain CHAPI code examples:
http://java.sun.com/javame/downloads/sdk30.jsp
Edit: CHAPI is also available on non-Symbian Nokia phones from Series 40 5th Edition, Feature Pack 1 onward, according to the Nokia Java Developers Library. You can find which nokia phone is running which version of Series40 at:
http://www.forum.nokia.com/devices/matrix_all_1.html
您可以尝试 PushRegistry 作为更通用的方法。 您还应该能够从其他套件启动 MIDlet。 请尝试此链接了解更多信息。
You can try PushRegistry as a more generic way. You should be able to launch MIDlets from other suites as well. Try this link for more information.