java - How to set text from an edittext from another class -
in application user presses textview , brings intent on screen user enters text want.
here case statement
case r.id.weapon: w = new intent(weapdescrip.this, popup.class); string weaponname = getsavedobject(); weapon.settext("weapon: " + weaponname); break; and here getsavedobject()
private string getsavedobject() { // todo auto-generated method stub startactivity(w); string savedobject = (string) popup.savedobject; return savedobject; } and here popup class
@override public void onclick(view v) { // todo auto-generated method stub savedobject = etsave.gettext(); //finish(); intent n = new intent(popup.this, weapdescrip.class); startactivity(n); } } when goes weapdescrip class text view doesn't change @ all
any worth while in advance.
Comments
Post a Comment