or as MMS from the android mobile programatcally!
Intent sendIntent = new Intent(Intent.ACTION_SEND);
//Mime type of the attachment (or) u can use sendIntent.setType("*/*")
sendIntent.setType("image/jpeg");
//Subject for the message or Email
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "My Picture");
//Full Path to the attachment
sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://sdcard/test.png"));
//Use a chooser to decide whether email or mms
startActivity(Intent.createChooser(sendIntent, "Email:"));
what if you want to get the pic/audio attached as mms...without choosing from chooser list
ReplyDeleteVikrant
Hi Katharnavas,
ReplyDeleteThanx for such help.
Apart from it do you have any idea about "How can get email inbox" in application.
pls reply