I am designing for a rooted MK802IIIS Android Mini PC. The devices use a wired ethernet connection (via USB to ethernet adapter) because WiFi is spotty in the areas the monitors are located. The App creates a webview and refreshes the webpage every 90 seconds to get near real time updates. Originally I used timers for all of the processes and when everything works as expected on the web side the displays work great. The screens are mounted about 10 feet above the floor, so I reboot the device once a day (via a service) so that no one needs to climb a ladder if the device should "hang". Prior to using a service I just used a timer for the reboot, but have had a couple occasions where the device returns to the home screen when there is a synchronization issue caused by the website net-scaler (the website is on 3 servers and automatically routes the request to the least used server). After the change to a service, the device reboots consistently, however after the reboot it loses the wired ethernet connection. I am attempting to add a second service >> to re-establish the wired ethernet connection at startup. The code includes a check for the ethernet connection (IF MyLan.GetMyIP<>"127.0.0.1" then ...) but even when there is no connection (Settings shows 0.0.0.0) the code returns true and continues to try to display the webpage. The information is from http://stackoverflow.com/questions/...net-how-to-toggle-ethernet-connectivity-state
Any suggestions would be greatly appreciated.
Any suggestions would be greatly appreciated.