Question: In Android App, I am using a TabBar which consists of 4 tabs. I have a requirement to get all objects of 4 Tabs. How can achieve this, any suggestions.

Answer: 
There's many ways to do it, one of which is to have a column in the table titled `new_notification` that will tell you if the notification is new(read by the user or not). So, for example, if a person likes another persons picture, in the table that column will have `new_notification` set to `Y`. When the user who's picture was liked logs into the website, you search for all rows where `new_notification = Y` do a count and show the number of notifications like facebook does. Once the user has seen the notifications or opened the notification bar, go through that table and set all the rows with `new_notification = Y` to `'N'`.
Yes I agree with @Interstellar\_Coder, you could have your post page info stored in one line in a database table, and your like info stored in another table. Reference which picture the person likes by ID.

Table 1 (picture posts):

```
ID | Picture    | Comments   | who
1  | (pic data) | my picture | user.name_1

```

Table 2 (likes):

```
row_ID | picture_ID | who
0      | 1          | user.name_2
1      | 1          | user.name_3

```

So in this example you have 1 picture posted by user.name\_1, then this picture has been liked by user.name\_2 and user.name\_3. We know this because of the picture\_ID field in the `likes` table. 

You can check in your database who likes picture post with ID=1, and it will tell you who likes it, mysql code example:

```
select who from likes where picture_ID = 1;

```