Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/08/2016, 00:35
silvasnuve
 
Fecha de Ingreso: agosto-2014
Mensajes: 17
Antigüedad: 10 años
Puntos: 0
Respuesta: Recorrer Arreglo

Gracias, exactamente con el timer pude solucionar mi problema.

Código Java:
Ver original
  1. String[] Abecedario={"A", "B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","V","W","X","Y","Z"};
  2.  time=0;
  3.  t = new Timer();
  4.         TimerTask task = new TimerTask()
  5.         {
  6.             public void run()
  7.             {
  8.                 runOnUiThread(new Runnable()
  9.                 {
  10.                     public void run()
  11.                     {
  12.                       if(time>=0 && time<=Abecedario.length)
  13.                        {
  14.                             texto.setText( Abecedario[time]);
  15.                                time++;
  16.                         }
  17.                    }
  18.                 });
  19.             }
  20.         };
  21.         t.scheduleAtFixedRate(task, 0, 1000);

Última edición por silvasnuve; 29/08/2016 a las 00:37 Razón: corrección if