/ Published in: Java
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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."); } } });