I have made a server - client app in android with php and mysql. When any new user registers and clicks on submit button then his/her information goes to php and gets stored in mysql database that is on the internet.
And then i have get that list of peoples in listview who are registered before in my app and in listview i can see all that people but now i want to add a functionality that can check who is online right now in my app. I will make two buttons ONLINE and OFFLINE. When i press the ONLINE buttons only those people should be display who are using this app right now.
I have also search this in web but i dint find any proper result, so please anybody who have made this before please give me some idea or link of tutorial regarding this. Thank you for your time.