Code example for NumberFormat

Methods: parse

0
	 * @see InputDialog#onAccepted(String) 
	 */ 
	@Override 
	protected void onAccepted(String value) {
		try { 
			Number number = format.parse(value);
			onAccepted(number);
		} catch (ParseException e) {
			Log.w("de.simtem.android.expenses", "Unable to parse input value", e);
			if (invalidMsg != 0) {
				Toast.makeText(getContext(), invalidMsg, Toast.LENGTH_SHORT);
			} 
		} 
	} 
 
	/** 
	 * Called when the user has pressed the OK button and the input is a valid 
	 * number 
	 *  
	 * @param number the number 
	 */