Code example for DigitsKeyListener

0
		this.txtBox.setKeyListener(new DigitsKeyListener(true,true));		
	} 
	 
	public void makeInteger() 
	{ 
		this.txtBox.setKeyListener(new DigitsKeyListener(true,false));
	} 
 
	@Override 
	public void afterTextChanged(Editable s) {
 
	} 
 
	@Override 
	public void beforeTextChanged(CharSequence s, int start, int count,
			int after) {
 
	} 
 
	@Override 
	public void onTextChanged(CharSequence s, int start, int before, int count) {