I'm basically trying to start a Socket.IO connection in one activity (The LogIn Activity) and carry that throughout the various other activities. If anyone has any idea on what would work the best in this situation that would be great. All I need is probably a service that I can run in the background but I haven't been able to figure out how that works. I tried doing this but that doesn't work.
public class KlassAttack extends Application {
Socket gameConnection;
@Override
public void onCreate() {
try {gameConnection = IO.socket("http://71.13.36.124:56543");}catch(URISyntaxException e){}
gameConnection.connect();
Log.e("TEST", "EEE");
}
}