Archives for Mobile Development

Sending HTML Email With Android Intent

It’s very easy to send email via an Android intent. Here’s an example where we already have the subject and body prepared but want to let the user decide on the recipient:

final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/plain");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, subject);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, body);
startActivity(Intent.createChooser(emailIntent, "Email:"));

(It’s important to note that this should be attempted on a real device.)

Nexus One Debugging In Ubuntu Linux

This is mostly just a note to myself, but I figured some other people might find it useful. When I connected my Nexus One, it was showing up as “???????????? no permissions” when I ran adb devices. I added the typical udev rule and had no luck. Running lsusb revealed the the vendor [...]