Skip to content

Instantly share code, notes, and snippets.

@Telltak
Created April 20, 2011 09:48
Show Gist options
  • Save Telltak/930866 to your computer and use it in GitHub Desktop.
Save Telltak/930866 to your computer and use it in GitHub Desktop.
package PROJECT!;
import android.app.Activity;
import net.unto.twitter.Api;
import net.unto.twitter.TwitterProtos.Status;
import android.os.Bundle;
import android.widget.TextView;
public class inkstorm extends Activity
{
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
TextView test= new TextView(this);
Api api = Api.builder().build();
for (Status status : api.publicTimeline().build().get()) {
test.setText(String.format("%s wrote '%s'", status.getUser().getName(), status.getText()));
}
setContentView(test);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment