I know this is very basic question, but I need to know, how I can display the contents of a variable on the screen.
Do I use a textview in my layout?
I have a textview box and I can set it to say something in the editor but I need to write the contents of a variable so I can do some error checking.
Anyone help?
If you have a TextView named textViewName defined in your layout XML file, you can just do something like this in your Activity class:
Is this what you’re looking for? If you don’t need to display it to the screen, and just want to debug, just use Log() and logcat to view the messages.