This method works ok in linux and subprocess.check_output(["ping", "-c", "3", "google.com"]) works ok in Qpython console on android but in python-for-android&kivy i get exit code 2 (ping other errors)
I've spent hole evening trying to solve the problem. No results.
Regards, Yurij
I wrote a method to check internet connection to host site. simplified version look like this:
def network_check(): hostname = "google.com" try: response = subprocess.check_output(["ping", "-c", "3", hostname]) return response except Exceprion as err: return err
I run this in threading.Thread
This method works ok in linux and subprocess.check_output(["ping", "-c", "3", "google.com"]) works ok in Qpython console on android but in python-for-android&kivy i get exit code 2 (ping other errors)
I've spent hole evening trying to solve the problem. No results. Regards, Yurij