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 trialpranay reddy
Courses Plus Student 1,637 PointsHow to change the contents of our published app,like if I want to pass on single new fact everyday to my app to users?
I thought of making an app which provides users a new fact every day upon refreshing.Can you guys help me out as to how to do this?
1 Answer
Daniel Hartin
18,106 PointsHi Pranay
I think the only way you could update the app everyday without annoying every user with another update everyday would be for the app to request data from the web. If I were creating the app you describe I would design a simple webpage that contained JSON data which could be requested from my app every time the user logged on, this way the app would never need updating and you could alter the webpage as frequently as you wished in the background without the end user knowing.
To tell you how to do all of this is outside the scope of the question really, but as you move along with the android track you will come across JSON data and learn how to extract data from other sources which are already on the web such as RSS feeds (less work work you Yeahhhh!)
Hope this helps and good luck Daniel