0
	 * @param amount 
	 * @return 
	 */ 
	@SuppressLint("NewApi") 
	public static String formattedAmount(double amount, boolean withText) {
		DecimalFormat formatter = new DecimalFormat();
		formatter.setGroupingSize(3);
		formatter.setGroupingUsed(true);
		 
		DecimalFormatSymbols decimalSymbol = new DecimalFormatSymbols();
		decimalSymbol.setDecimalSeparator('.');
		decimalSymbol.setGroupingSeparator(',');
		// decimalSymbol.setCurrencySymbol(Settings.settings.get(Settings.FORMAT_UNIT).getValue()); 
		((DecimalFormat) formatter).setDecimalFormatSymbols(decimalSymbol);
		 
		formatter.setMinimumFractionDigits(2);
		formatter.setMinimumIntegerDigits(1);
		if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH)
			formatter.setRoundingMode(RoundingMode.HALF_DOWN); // NOT COMPATIBLE WITH 4.0 below
		 
		return (withText) ? formatter.format(amount) : String.format("P %s", formatter.format(amount));
	} 
	 
	/** 
	 *  
	 * Save a bitmap on the sd card as <i>jpg</i>. 
Stop searching for code, let great code find you!  Add Codota to your java IDE