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

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -