Profile image of wsadik
@wsadik
Member since April, 2004
0 Recomendações

wsadik

Conectado Desconectado
//-------------------------------------------------------------------------- protected class TrackEmCommandListener implements CommandListener, Runnable { /** Current command to proccess. */ private Command currentCommand; /** Displyable of the current command to proccess. */ private Displayable currentDisplayable; /** The current command processing thread. */ private Thread commandThread; /** * The method to determine what action to take * * @param c The Command object that has been activated * @param d The Displayable object that the command was * associated with */ public void commandAction(Command c, Displayable d) { synchronized (this) { if (commandThread != null) { ("GORU"); // process only one command at a time return; } currentCommand = c; currentDisplayable = d; commandThread = new Thread(this); (); } } private void exitThread() { synchronized (this) { commandThread = null; } } /** * Perform the current command set by the method commandAction. */ public void run() { if (currentCommand == TrackEmUtil.EXIT_COMMAND) { try { destroyApp(true); } catch (MIDletStateChangeException msce) { //TBD } } else if (currentCommand == TrackEmUtil.ABOUT_COMMAND) { showAbout(); } //------------------------------------------------ synchronized (this) { // signal that another command can be processed commandThread = null; } } } /**************************************************************************/ private class UpdaterTask extends TimerTask { private int localTimer = 1; public void run() { ("------------------------------"); ("UpdaterTask:run(): (sc != null) " + (sc != null)); ("UpdaterTask:run(): (display == sc) " + (() == sc)); ("UpdaterTask:run(): localTimer = " + localTimer); (()); if (localTimer >= 20) { (()); Thread t1 = new Thread() { public void run() { ((), ()); } }; (); Thread t2 = new Thread() { public void run() { (); } }; (); localTimer = 1; } else { localTimer++; } (); ("==============================="); } // run } /**************************************************************************/
$15 USD/hr
1 comentário
0.8
  • 100%Trabalhos Concluídos
  • 100%No orçamento
  • 100%No Prazo
  • N/ATaxa de Recontratação

Portfólio

Comentários recentes

  • image of MatrixSphere Finish Codes $25.00 USD

    “Works well under pressure!!!!”

Verificações

  • Conectado com o Facebook
  • Freelancer Preferencial
  • Pagamento Verificado
  • Telefone Verificado
  • Identidade Verificada
  • E-mail Verificado

Minhas habilidades principais

Pesquisar Freelancers similares