public void afterTextChanged(Editable s) { // TODO Auto-generated method stub TextView gtin = (TextView) findViewById(R.id.textView2); String sgtin=gtin.getText().toString(); sgtin.substring(0,7); gtin.setText(sgtin); }
substring()
String str = sgtin.substring(0,7); gtin.setText(str);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)