Example #1
0
 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);
     }
   }
 }
Example #2
0
 public MMSMIDlet() {
   mSender = MMSSender.getInstance();
 }