Please use the following attribute for view **EditText** _hex_val_ to prevent wrong chars in hex input: `android:digits="0123456789ABCDEF"`