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

Populating SQLite Database in Android without user input

I'm currently trying to build an Android app that does calculations based on user input.

The basic flow looks like this:

-User enters a starting date and an ending date. -The app pulls records from the database and does calculations. -The results are returned to the user.

However, this is going to require a lot of records being in the DB when the app starts up and I'm wondering if there's an easy way to add them since hard coding them with db.insert doesn't seem like an ideal way of doing things.

This is the first Android app I've built that wasn't a course project, so I may be a bit out of my depth.

1 Answer

You might try looking for something similar to Faker.