This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Android Studio and Java calling a button press variable  RSS feed

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Android Studio to create a small app as an exercise, and I have hit a stumbling block of sorts.

I want my Android Screen to show the message "you have choosen " + the button press they just hit. In this instance a brand of denim jeans.

Is there anyway to get the .getText() from the toast to print on the screen, I would normally just type system.out.println("you have choosen "+getText);
But the XML format of Android doesn't seem to allow that command.

Any help is much appreciated.



PS: if this is the wrong forum for this question, I apologize, feel free to move it to the appropriate section.
 
Sheriff
Posts: 5115
138
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have moved the thread to Mobile -> Android.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!