GoConqr has a new look! Let us know what you think.

Notes

Nothing important

Prakash Sharma Information Technology Programming English 2 pages

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
Views
22
Tags
rain
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?