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

Best way to store and display data

Hi,

I want to create a simple diary application for android. The way i want my app to function is to have 3 different activities: the first is a welcome page, the second displays all the diary entries the user has created in a list view and then the third will allow the user to input a new diary entry.

My question is how best to store the diary entries and then how i would go about loading this data in a list view

Brad Wilder
Brad Wilder
3,541 Points

The best way that I can think of for storing the entries might be as a database. The reason being is you'll most likely want to keep at least the datetime information with the entries. As far as how to go about doing that I can't help you. I'm still learning that myself. Treehouse does have a course for that though (which is how I'm learning myself). It is Android Data Persistance. Give it a go and hopefully it will give you the knowledge you need.