Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Neil Gittens
1,826 PointsPossible to do random text
I am doing the Android development track and have finished the simple build a android app. I was wondering is there a way to do display text like random quote when the app load the xml file or does random text have to be generated with the onclicklistener command. In the example it is done by the button and listening for the click.
I wanted to try generating a random quote/tip upon loading of the first page of the app.
I have checked the android library. I've found something called onCreate.
I'm stuck. Sorry if I am jumping ahead.
Any help????