I am new to Android. I want to add one Menu by pressing the TextView. Menu should have the Calling & Message & MMS option.
I have successfully implemented this for email using the code below and I want to implement in a similar way Call, SMS and MMS option for my application.
tv4.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
Intent i = new Intent(android.content.Intent.ACTION_SEND);
i.setType("html/plain");
i.putExtra(Intent.EXTRA_EMAIL , new String[]{bean.getOfficialemailid()});
i.putExtra(Intent.EXTRA_SUBJECT, "Official");
i.putExtra(Intent.EXTRA_TEXT , "Have a Great Day");
try {
startActivity(Intent.createChooser(i, "SEND EMAIL"));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(Database_display_activity.this, "There are no email clients installed.", Toast.LENGTH_SHORT).show();
}
}
} );