src/jpm/dg/Dialogs.java
/**
	 * Generates and shows a completed email dialog.
	 * 
	 * @param context
	 * @param fileName
	 */
Generates and shows a completed email dialog.

@param context
@param fileName
Generates and shows a completed email dialog . @param context @param fileName
public static void showEmailDialog(final Context context, String fileName) {
		final String fullPath = Environment
				.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).toString()
				+ "/Personal/" + fileName + ".png";
		AlertDialog.Builder builder = getDialog(context, "Operation Completed",
				"File saved in Personal folder as " + fileName + ".png")
				.setIcon(R.drawable.tick);
		builder.setPositiveButton("Email Image",
				new DialogInterface.OnClickListener() {
					public void onClick(DialogInterface dialog, int id) {
						Util.sendEmail(context, fullPath);
					}
				});
		builder.setNegativeButton("Done!",
				new DialogInterface.OnClickListener() {
					public void onClick(DialogInterface dialog, int id) {
						dialog.dismiss();
					}
				});
		builder.show();
	}
public static void showEmailDialog ( final Context context , String fileName ) { final String fullPath = Environment . getExternalStoragePublicDirectory ( Environment . DIRECTORY_PICTURES ) . toString ( ) + "/Personal/" + fileName + ".png" ; AlertDialog . Builder builder = getDialog ( context , "Operation Completed" , "File saved in Personal folder as " + fileName + ".png" ) . setIcon ( R . drawable . tick ) ; builder . setPositiveButton ( "Email Image" , new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int id ) { Util . sendEmail ( context , fullPath ) ; } } ) ; builder . setNegativeButton ( "Done!" , new DialogInterface . OnClickListener ( ) { public void onClick ( DialogInterface dialog , int id ) { dialog . dismiss ( ) ; } } ) ; builder . show ( ) ; }
Generates and shows a completed email dialog.
Generates and shows a completed email dialog .