我已经创建了一个菜单,其中有不同的操作。当用户单击项目的时,它应该分别调用另一个midlet。
还有没有其他的方法呢?
我尝试了下面的代码:previous = PushRegistry.registerAlarm("m", 0);来传输到另一个midlet,但它给出了一个异常:
java.lang.ClassNotFoundException: No MIDLet-<n> registrationm是出现在同一个包中的midlet。
发布于 2012-04-03 22:21:48
API documentation for the method PushRegistry.registerAlarm解释了出现错误的原因:
抛出:
...ClassNotFoundException -如果在当前的MIDlet套件中找不到MIDlet类名,或者如果这个类没有包含在描述符文件或jar文件清单中的任何midlet记录中,或者如果midlet参数为null...
根据关于No MIDLet-<n> registration的错误消息,上面列出的可能的错误原因之一似乎适合您的情况:"class is not included in any the MIDlet- records"。
https://stackoverflow.com/questions/9994138
复制相似问题