Android : Using parse to create a comments area on android app

on Saturday, March 28, 2015


Currently I'm working on an application where a part of it has a very similar feature to Instagram. It can display images stored on the parse database and display them like a gallery. When you click on each image it enlarges and there's an EditText area where you can add comments and a TextView within a ListView to view comments.


The problem is that all of the comments are being added to the same table on the database. Every comment that is added (regardless of the image it's added to) will be displayed on all other comments areas of all other images.


What I want to do is make the comments area unique for each image that is uploaded. What I thought of doing was to create a table (class) for each image and the comments will be added to that. This seems over the top as there will be a ridiculous number of tables created. What other ways are there for me to tackle this problem? Some way of using ObjectId of the image? Any suggestions to resolve this problem will be appreciated!


Thanks in advance.


0 comments:

Post a Comment