Can A Midlet invoke another Midlet?

痴心易碎 提交于 2019-12-10 12:59:25

问题


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.


回答1:


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




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/1295647/can-a-midlet-invoke-another-midlet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!