android - How to display the user entered text on the same screen -
i'm begineer in android. learned developer.android.com, how display text calling activity. want display user entered text in same window. i.e., belolow text field(center). please me. i'm beginner in android , have started learn android.
use edittext user input text
edittext text = (edittext)findviewbyid(r.id.edittext);
for use of textwatcher listen text field
text .addtextchangedlistener(new textwatcher() { @override public void ontextchanged(charsequence s, int start, int before, int count) { // todo auto-generated method stub } @override public void beforetextchanged(charsequence s, int start, int count, int after) { // todo auto-generated method stub } @override public void aftertextchanged(editable s) { // todo auto-generated method stub } });
use ontextchanged method use listen edittext . inside ontextchanged start activity passing test value
Comments
Post a Comment