public void commandAction(Command c, Displayable d) { if (c == mExitCommand) { if (!mSender.isSending()) { destroyApp(true); notifyDestroyed(); } } else if (c == mRedCommand) { String dest = mNumberEntry.getString(); if (dest.length() > 0) { mSender.sendMsg(dest, mAppID, RED_IMAGE); } } else if (c == mBlueCommand) { String dest = mNumberEntry.getString(); if (dest.length() > 0) { mSender.sendMsg(dest, mAppID, BLUE_IMAGE); } } }
public MMSMIDlet() { mSender = MMSSender.getInstance(); }