title: how to take input from user in android
body: <p>i have a EditText in android in which i want the user to enter the text and checks for the condition "BYE"</p>
  
  <p>Code sample:</p>
  
  <pre><code>EditText text = (EditText)findViewById(R.id.EditText01);
  String abc= text .getText().toString(); 
  
  while( !(abc).equals("bye")){
  
     abc = text.getText().toString();//user should enter the text from keyboard and the while loop should go and chech the condition.but not able to enter the text
  
     //do some operation with abc
  
   }
  </code></pre>
  
  <p>How can i make user to enter the text??The UI should wait for the text to be entered(something like we have InputStreamReader in java applications).</p>