Published in: Java
Expand |
Embed | Plain Text
Intent intent = new Intent("com.twidroid.SendDirect"); /* set recipient of direct message */ intent.putExtra("com.twidroid.extra.TO", "androidev"); /* set direct message content */ 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."); } } });
Comments
Subscribe to comments


See here how to send simple tweets
See here how to send direct messages
thanks. very useful. Posted By: mikewq on November 6, 2009
thanks. very useful.
You need to login to post a comment.