w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
extract string from edittext to textview in one activity android

Simply use this one..

 s1 = et.getText().toString();
 tv.setText(s1);

and if you want to get from string.xml then use

 tv.setText(getResources().getString(R.string.ok1));

NOTE: Remember one thing when you extract value from EditText or TextView and take that value in String then you have to just set that String to TextView.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.