src/jpm/dg/Util.java
/**
	 * Sends an email with the given file as an attachment.
	 * 
	 * @param context
	 * @param filePath
	 */
Sends an email with the given file as an attachment.

@param context
@param filePath
Sends an email with the given file as an attachment . @param context @param filePath
public static void sendEmail(Context context, String filePath) {
		Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
		emailIntent.setType("application/image");
		emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,
				new String[] {});
		emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
				"");
		emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, "");
		emailIntent.putExtra(Intent.EXTRA_STREAM,
				Uri.parse("file://" + filePath));
		context.startActivity(Intent.createChooser(emailIntent, "Send mail..."));
	}
public static void sendEmail ( Context context , String filePath ) { Intent emailIntent = new Intent ( android . content . Intent . ACTION_SEND ) ; emailIntent . setType ( "application/image" ) ; emailIntent . putExtra ( android . content . Intent . EXTRA_EMAIL , new String [ ] { } ) ; emailIntent . putExtra ( android . content . Intent . EXTRA_SUBJECT , "" ) ; emailIntent . putExtra ( android . content . Intent . EXTRA_TEXT , "" ) ; emailIntent . putExtra ( Intent . EXTRA_STREAM , Uri . parse ( "file://" + filePath ) ) ; context . startActivity ( Intent . createChooser ( emailIntent , "Send mail..." ) ) ; }
Sends an email with the given file as an attachment.
Sends an email with the given file as an attachment .