Code example for ParsePosition

Methods: getIndex

0
	} 
	 
	public static boolean isNumeric(String str)
	{ 
	  NumberFormat formatter = NumberFormat.getInstance();
	  ParsePosition pos = new ParsePosition(0);
	  formatter.parse(str, pos);
	  return str.length() == pos.getIndex();
	} 
	 
	 @Override 
	    protected void onResume() 
	    { 
	        super.onResume(); 
	    } 
	      
	    @Override 
	    protected void onPause() 
	    { 
	        super.onPause(); 
	    }