/ Published in: Java

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); 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."); } } }); }
Comments
