I want to be able to prevent the following error if the user doesn't exit the app properly:
"Caused by: libcore.io.ErrnoException: bind failed: EADDRINUSE (Address already in use)".
It appears to fail on server.Initialize(port, "server") in the service module of the new app. I added a server.close before this command but it didn't fix it. Is there another command I need to use?
What is the proper procedure for closing this if another app on the same tablet didn't terminate properly? For example: If an app is started then "back buttoned" out of, and the user forgets about it, and then starts up a different app on the same tablet that tries to wifi connect.
-Chuck
"Caused by: libcore.io.ErrnoException: bind failed: EADDRINUSE (Address already in use)".
It appears to fail on server.Initialize(port, "server") in the service module of the new app. I added a server.close before this command but it didn't fix it. Is there another command I need to use?
What is the proper procedure for closing this if another app on the same tablet didn't terminate properly? For example: If an app is started then "back buttoned" out of, and the user forgets about it, and then starts up a different app on the same tablet that tries to wifi connect.
-Chuck