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

Android

Siva Ganesh
Siva Ganesh
23,733 Points

Simple App with Listing and data auto update

I want to build an android app to list 3 or 4 details on a single page (and link to each of its own website) . Every day, the listing will be updated.

What is the simplest way to build this sort of app.

(I'm trying to validate my idea as an MVP product)

2 Answers

Use Model view controller pattern.

Make android list view as your view. Your List Activity as controller and Create a data model for you news.

Update your data model and it will automatically update your listing.

Siva Ganesh
Siva Ganesh
23,733 Points

How to update data since it changes daily..

There are multiple ways, the easiest one of them is disply the current data to user and in backgroung(thread) check for update, if there is an update update list. You can use files to save the current data which is displayed in list. You can use java network library to get data from network. You will find good tutorials for the same on internet.