I would put in this code a control on EditText so that it only accepts hexadecimal numbers.
How do I go about doing this?
bin = (EditText)findViewById(R.id.editText02);
hex = (EditText)findViewById(R.id.editText3);
dec = (EditText)findViewById(R.id.editText1);
oct = (EditText)findViewById(R.id.editText04);
TextWatcher is also good option, however I prefer using custom filters.
thereby, simpler way is to use InputFilter and take control of every char on the fly, see example below, hope this helps