Skip to content

Instantly share code, notes, and snippets.

Last active Dec 25, 2015
What would you like to do?
class MyActivity extends Activity {
private Thread myWorker = new Thread() {
public void run() {
URL url = new URL("");
String body = url.getBody(); Runnable() { public void run() {myView.setText(body)} });
private TextView myView;
public void onCreate(..) {
myView = (TextView) findViewById(..);
public interface OnStory {
public void onStory(String story);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment