I'm creating a chat app with nodejs socketIO in android. I have a problem when i press the back button on the Activity it will return to the login Activity and disconnect the nodejs socketIO and i want to login again but not connected to nodejs socketIO again . How to reconnect . Please help me
Here is logic which you can apply.
I hope this answer helps you and solve your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.