January 17th, 2012, 01:44 AM
|
#2 (permalink)
|
|
Premium Member
Join Date: Oct 2011
Location: Sydney, Australia
Posts: 193
Device(s): Galaxy Nexus GSM
Thanks: 2
Thanked 37 Times in 33 Posts
|
The comments cannot exist in local SQLite databases stored on individual devices, because other users cannot access those comments.
You'll need a server with the database of users and user comments.
You'll need to expose some way for app on your android device to access those comments stored in the database.
What you DON'T want to do is directly expose the database to Internet in order to directly send SQL command from your Android app to the database.
You DO want to create some kind of Internet server to act as an intermediary. You Android app sends high-level requests (like add comment, get comments for object, etc). The Internet server "translates" those into SQL request for your database. Similarly the Internet server receives the SQL responses and "translates" them into a form that can be sent back to Android app.
You have many, many, many choices here. Too many for me to advise directly.
But you might want to look at REST and JSON. That would be my first architectural choice.
|
|
|