Revision: 10401
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 25, 2008 12:38 by ralph
Initial Code
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final Button button = (Button) findViewById(R.id.sendtweet); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent("com.twidroid.SendTweet"); intent.putExtra("com.twidroid.extra.MESSAGE", "This is a test from Twidroid public intent."); try { startActivityForResult(intent, 1); } catch (ActivityNotFoundException e) { /* Handle Exception if Twidroid is not installed */ TextView text = (TextView) findViewById(R.id.message); text.setText("Twidroid Application not found."); button.setVisibility(View.GONE); } } }); }
Initial URL
http://www.twidroid.com
Initial Description
Initial Title
Use Twidroid's public intent to send Twitter messages from your own Android application
Initial Tags
twitter, android
Initial Language
Java