How to save the content of a EditText into a String? Android -


i have tried with:

edittext edtext1 = (edittext) findviewbyid(r.id.edittext1); string str = edtext1.gettext().tostring(); 

i numbers not characters. how can edittext text in order put on string , manipulate it?

// first set input type of edittext in java class this;  edittext edtext1 = (edittext) findviewbyid(r.id.edittext1);  edtext1.setinputtype(inputtype.type_class_text);  string str = edtext1.gettext().tostring(); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -