View problem - how to show integer from activity in XML?
- by Oliver Goossens
Hi there,
I started two days ago with android, gone through the hello android stuff and also started to read the Hello Android book, which is great.
PROBLEM:
I use in my app - VERY EASY APP- the XML output. So basically the main activity just tells the android to show the XML layout of main.
But what if I have in the activity - code defined integer variable and I want this integer variable also be shown on the display?
How do I PUSH the integer variable to the XML??? From main XML reference to other strings in XML is easy - @string/app_name ... but how do I use the integer variable from the activity?
Please help
Thank you
Oliver