Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.