Now, let's view the output of our MIDlet.
现在,让我们观察这个MIDlet的输出。
Figure 4 shows the MIDlet with two different search results.
图4展示了有两个不同搜索结果的MIDlet。
The ReadWrite MIDlet only writes text strings to the record store.
ReadWriteMIDlet只能将文本字符串写入到记录存储中。
Discussion of how a J2ME MIDlet will use the secure email service.
讨论J 2 MEMIDlet将如何使用安全电子邮件服务。
A MIDlet having CBS capability can receive messages, but cannot send them.
有CBS能力的MIDlet可接收消息,但不能发送它们。
The PIM MIDlet should be run in a configuration that supports PIM i.e. JSR 75.
PIMMIDlet应该在一个支持 PIM 的配置(即JSR 75)中运行。
It allows a MIDlet to receive a callback when new messages are available to be read.
当可以读取新到消息时,它允许MIDlet接收一个回调。
This provides a basic mechanism to notify the MIDlet application of an incoming message.
它提供了向MIDlet应用程序通知有进入消息的基本机制。
Always follow these three steps when deploying a MIDlet with wireless messaging capability.
部署有无线消息传递能力的MIDlet时,要始终遵照以下三个步骤。
Our next MIDlet will use an HttpConnection to download and view the contents of a text file.
我们的下一个MIDlet将使用一个HttpConnection下载并查看一个文本文件的内容。
Now let's write a simple MIDlet that displays a string according to the locale as well as an image.
现在让我们编写一个简单的MIDlet,根据地区显示字符串和图片。
Take a look at the complete code for the ReadWrite MIDlet and then we'll discuss it in more detail.
请阅读ReadWriteMIDlet的完整代码,下面我们将详细讨论它。
Now you'll write a simple MIDlet to display date and time, Numbers, percentages, and currency data.
现在将编写一个简单的MIDlet程序来显示日期、时间、数字、百分比和货币数据。
Take a look at the complete code for the FileViewer MIDlet and then we'll discuss it in more detail.
看一下FileViewerMIDlet的完整源代码,我们将在下面详细讨论它。
J2MEClientMIDlet.java, which provides a very simple MIDlet wrapper that you can use to test the code.
它提供了可以用来测试这些代码的一个非常简单的MIDlet包装器。
It gives the MIDlet the capability of tracking an item change on the screen and responding to user commands.
它使MIDlet具备了跟踪屏幕上的条目变化和对用户命令作出响应的功能。
Please note that this article assumes that you are familiar with MIDlet development in the J2ME environment.
请注意本文假定读者熟悉J2ME环境中的MIDlet开发。
In addition to allowing us to search the RMS for records, this MIDlet beefs up the user interface we've worked with so far.
除了可以在RMS中搜索记录,这个MIDlet还加强了用户界面。
To demonstrate the concepts presented up to this point, we wrote a file-viewer MIDlet that downloaded and displayed a text file.
为了展示所介绍的概念,我们编写了一个FileViewerMIDlet,它可下载并显示一个文本文件。
In addition, the MIDlet can initiate some state changes by itself, and notify the application management software of those changes.
此外,MIDlet可以自己发起一些状态变化,并把这些变化通知给应用程序管理软件。
The MIDlet implements the RecordComparator interface and defines a compare (byte rec1, byte rec2) method to compare two candidate records.
MIDlet实现RecordComparator接口,并定义compare (byterec1,byterec2)方法来比较两个候选记录。
Put simply, the MIDP Record Management System (RMS) provides a means to store application data that persists across invocations of a MIDlet.
简单地说,MIDP记录管理系统(RMS)提供了一种跨多个MIDlet 调用持久性地存储应用程序数据的手段。
Creating the user interface consists of allocating a Form, a TextField, and two Commands — one to search the record store and one to exit the MIDlet, as shown in Listing 19.
用户界面的创建包括指定一个Form、一个TextField和两个Command——一个用于搜索记录存储,另外一个用于退出MIDlet,如清单19所示。
When a MIDlet uses multiple threads to access a record store, it is the MIDlet's responsibility to coordinate this access; if it fails to do so, unintended consequences may result.
当MIDlet使用多个线程访问一个记录存储时,协调该访问是 MIDlet的责任;如果它不能这样做,可能出现无法意料的结果。
This section describes the steps to create a special project (called a MIDlet suite) for a MIDlet application, and shows you how to launch and run it on the available Nokia MIDP Emulators.
下面这部分描述了为MIDlet应用程序创建一个特殊项目(称为MIDlet套件)的步骤,并向您展示了如何在可用的Nokia MIDP仿真器上启动并运行它。
Sometimes, when using Device Developer to debug a MIDlet in the Nokia 6310i Emulator, a debug connection between the Nokia emulator and the Device Developer debugging system cannot be established.
在使用DeviceDeveloper调试Nokia 6310i仿真器中的MIDlet 时,有时候不能在 Nokia 仿真器与 Device Developer调试系统之间建立调试连接。
The application extends the MIDlet class to allow the application management software to control the MIDlet, retrieve properties from the application descriptor, and notify and request state changes.
这个应用程序继承了midlet类,以允许应用程序管理软件对MIDlet进行控制、从应用程序描述符检索属性以及对状态变化进行通知和请求。
The application extends the MIDlet class to allow the application management software to control the MIDlet, retrieve properties from the application descriptor, and notify and request state changes.
这个应用程序继承了midlet类,以允许应用程序管理软件对MIDlet进行控制、从应用程序描述符检索属性以及对状态变化进行通知和请求。
应用推荐