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

Need to sync databases. Not even sure about that.

I am creating an android app that will be like a noticeboard. Users will perform CRUD operations mostly. This is a semester project and what my evaluator wants is that I create a web app for this too. Now the problem is that I am a newbie at android. I just don't know how the database for web (MySQL) and android (SQLite) will be synchronized. Do I need to create separate databases? One for web and one for android or one would be enough? If yes, which one would that be? Tutorials link or other support material would be highly appreciated.

Thank you

1 Answer

Carlos José
PLUS
Carlos José
Courses Plus Student 12,431 Points

I don't really know the answer but I read a portion of the Wikipedia article and it says it's an embedded database implemented as a library which is a piece of code other program use AFAIK.

So the thing is that this looks like the mainframes where the dummies pull data from a main Giant server and do operations with this data. So I would expect in a probable manner that you will have a main database in a server and then pull data and stored it in a local embedded database unique to each android device.