Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get the name of the user using edittext in android please help me  RSS feed

 
izhar khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am building an app
i am new to android
can anyone tell me please that how can i get the name of the user
the user just enter the name in a text field and i get the name without any button
any example code will be highly appreciated
thanks in advance
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a reference to the EditText object then you should have no problem retrieving the contents of the field. I don't understand what a button would have to do with this, though.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!