Notes
Nothing important
Content of the notes (2)
Page 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();
Page 2
Information
- Description
- Nothing much to describe
- Created by
- Prakash Sharma · Oct 2018
- Updated
- Oct 17, 2018
- Views
- 22
- Tags
- Rating