I thought making thing part of the app would be easy, however I was wrong. I wish to have a textView display whatever the user wrote in the editText. This is what I tried.
add.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { // TODO Auto-generated method stub myTextView.setText(myEditText.getText().toString()); // of course I would use variables in place of the // myTextView and myEditText } }); This is another way I tried to get this done.
add.setOnClickListener(new View.OnClickListener() { public void onClick(View arg0) { // TODO Auto-generated method stub //num1 is my String variable num1 = myEditText.getText().toString(); myTextView.setText(num1); } }); Both times the textView comes up with nothing in it. Thank you for any help!