Hello, I'm working with sockets now to communicate with an activity
But when the user closes the activity or goes to another application I lose the connection in a few seconds.
I was told to create a service.
Does anyone have suggestions of what it can be ??
When I leave something written in an edittext the same thing happens when I open another application, when I go back to the activity it does not have what I left written.
But when the user closes the activity or goes to another application I lose the connection in a few seconds.
I was told to create a service.
Does anyone have suggestions of what it can be ??
When I leave something written in an edittext the same thing happens when I open another application, when I go back to the activity it does not have what I left written.