import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
class UIHelper {
public static void startEmailIntent(final Context ctx,
final String emailto,
final String subject,
final String text) {
final Intent i = new Intent(Intent.ACTION_SEND);
i.setType("text/html");
if (emailto != null)
i.putExtra(Intent.EXTRA_EMAIL, new String[]{emailto});
i.putExtra(Intent.EXTRA_SUBJECT, subject);
i.putExtra(Intent.EXTRA_TEXT, text);
ctx.startActivity(Intent.createChooser(i, "Select email application"));
}
}