• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps edittext to edittext

06shana

Lurker
,hi
im searching for possible answer but i only see edittext and textview ..

i want to ask how can i get the text in edittext1 on edittext2 when i clicked a button ..thnx ..
i try this code but it doesn't work ..

String ulname= txtlname.getText().toString();
String ufname= txtlname.getText().toString();
String ucourse= txtlname.getText().toString();


txtlnme & ulname and so on is a EditText
 
You need to post more code and the error message you are seeing.

There is nothing wrong with those lines as is, but I suspect you are misunderstanding variable scope.
 
Back
Top Bottom