Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class ThreadActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
//...
new DownloadTask().start();
}
private class DownloadTask extends Thread {
@Override
public void run() {
SystemClock.sleep(2000 * 10);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment