-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add code to properly handle unstable WiFi network conditions. In older versions of Android, an open/bound ServerSocket could survive network disconnect followed by subsequent reconnect. In newer versions of Android, an open/bound ServerSocket throws a "Socket closed" IOException upon network disconnect. This added code will detect this condition, and poll every 15 seconds to determine when the network is available. At this time, a new ServerSocket is open/bound. If the IP assigned to the device on the WiFi network is changed, the foreground service notification is updated.
- Loading branch information
1 parent
b96c9a4
commit 38cf3ec
Showing
4 changed files
with
176 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters