I have online music application.
My Application has 1 listview and 1 fragment player page.
player page has like button (2 state):
- is like (red heart icon)
- no like (white heart icon)
my method is check like from
mysqli database server using by send
post request to server and get
json response include (0-> false or 1->true). false means no like and true means liked.
now, for every request and open player fragment this request post to server for checking. number of requests too much and my server Does not rest :\
my method Not worth it :|
Methods and Facebook apps like Instagram likes to check out what is?