You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: