Created
April 20, 2011 09:48
-
-
Save Telltak/930866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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