Notas
Nothing important
Conteúdo das notas (2)
Página 1
1. Run a code on a different thread for the infinite time.
Thread thread = new Thread() { @Override public void run() { try { while (!thread.isInterrupted()) { Thread.sleep(1000); runOnUiThread(new Runnable() { @Override public void run() { // update TextView here! } }); } } catch (InterruptedException e) { } } }; thread.start();
Página 2
Informações
- Descrição
- Nothing much to describe
- Criado por
- Prakash Sharma
- Visualizações
- 22
- Tags
- Avaliação