Java Reference
In-Depth Information
public void destroyApp(boolean flg) {
}
public void commandAction(Command c, Displayable s) {
if (c == mExitCommand) {
destroyApp(true);
notifyDestroyed();
}
}
public void verifyPIMSupport() throws IOException {
String version = "";
version = System.getProperty("microedition.pim.version");
if (version != null) {
if (!version.equals("1.0"))
throw new IOException("Package is not version 1.0.");
}
else
throw new IOException("PIM optional package is not available.");
}
private ContactList contList = null;
private void seed() throws PIMException {
try {
PIM pimInst = PIM.getInstance();
contList = (ContactList)
pimInst.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
}
catch (PIMException ex) {
// Contact list is not supported.
}
addContact(contList, "Jack", "Goldburg", "2345 High Park Ave",
"Orlando", "USA", "32817");
addContact(contList, "Mary", "Johnson", "777 Lucky Road",
"London", "UK", "SW10 0XE");
addContact(contList, "Johnathan", "Knudsen", "234 Sunny Java Street",
"Sausalito", "USA", "94965");
addContact(contList, "Sing", "Li", "168 Technology Drive",
"Edmonton", "Canada", "T6G 2E1");
if (contList != null)
contList.close();
contList = null;
}
Search WWH ::




Custom Search