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
Jonathan Söder
7,428 PointsI've got a question about holding data and possibly databases
Let's say I want to create an app that stores different values (int and/or strings mainly) made from user input. If I want to store them over an indefinite time (days, months, years etc) with more data accumulating for each time a user uses the app and enters value, do I have to use a database? What kind of database does android use? Would it be an easy jump between that and mysql? This is just to still some curiosity, I'll take the android course in a few days...
2 Answers
Harry James
14,780 PointsHey Jonathan!
No, you don't have to use a database for permanent storage in Android. In fact, there's a variety of ways to go about this! I'd highly recommend you check out the Android Data Persistence course to learn about all of the different database storage methods. Evan does a good job at explaining these and which data storage types are best suited towards your app.
Evan doesn't actually talk about using a MySQL database (However, this is possible and there are plenty of tutorials on how to use one on the internet) but he does talk about using an SQLite database (And, if you're familiar with MySQL, SQLite works in pretty much the same way (There's only a few differences but, chances are you'll never notice them!).
Hopefully the course should help out but, if there's anything you don't understand, feel free to reply to this question or tag me on a new post and I'll be sure to answer :)
Jonathan Söder
7,428 PointsCool! I can't wait to learn! Thanks! :)