http://www.devx.com/wireless/Article/39101/0/page/2
I have followed this tutorial and got it to work and everything. now i am working on my own stuff after getting the basics down. I dont understand though how i can change the text (above the part the user inputs their name) so a string that i have defined withing the .java file. I want to be able to change it so its like a question, the person will type the answer and hit the button, then it will say if it is correct or not. Then i will load a new string into the app and continue that process. Any ideas on how to just get text out there that i can change by just setting it equal to a new string or something like that?
EDIT:
My code right now is very sloppy, i have some random code in there commented out along with phsuedo code and all that jazz, it is unreadable if you are not me atm.
I guess my question is, How can i get a string that i create in the .java file to show up on the app UI? example:
String str = “Hello there!”;
output str into UI
I’m assuming you want to display it in a
TextView. If so, you can do the following: