Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old January 16th, 2012, 07:06 PM   #1 (permalink)
New Member
 
Join Date: Dec 2011
Posts: 2
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Query: Sharing comments between users

Hi, I'm currently planning to develop an application which will allow users to share comments (similar to tweets, facebook status', etc.) which can then be viewed by other users. This is only a small part of the app, however it is the one part with which I'm having trouble with.

My issue is that I'm not sure how to go about designing this. I've read up a little about SQLite and creating databases, however I'm not sure this is the route I should be looking at. Essentially what I need is to have an area where users can select a category from a provided list, post a comment to this category and be able to view any other comments.

It would be brilliant if anyone could offer some help on what direction I should be looking into. My experience with servers and databases is quite limited so any help would be great.

Many thanks!

Mullanimal is offline  
Reply With Quote
Sponsors
Old 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
Default

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.
jiminaus is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 08:23 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo