socket.io-client-java
socket.io-client-java copied to clipboard
Socket reuse
Hi ,
How to reuse one socket connection to entire app
I would recommend setting up a Service and using ServiceConnection objects in any activity you want to use your socket in.
https://developer.android.com/guide/components/bound-services
extends the Application class, make a variable socket there