val=(EditText) findViewById(R.id.editText1); gtin=(EditText) findViewById(R.id.editText2); String sVal=val.getText().toString(); sVal=sVal.substring(1, 14); gtin.setText(sVal);
toString
if(sVal.length() >= 14) { sVal = sVal.substring(1, 14); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)