-1

The problem is the jsoup library runs into and exception while i execute the jsoup.connect(url).get() but works fine on other devices i get error only in android-pie

public static void scrape(){
    new Thread(new Runnable() {
        @Override
        public void run() {
            try {
                Log.d(TAG, "webscraping is running\n");
                Document doc = Jsoup.connect("my url"+con.integer_route+".php").get();
                con.latitude = doc.title();
                con.longitude = doc.body().text();
            } catch (IOException e) {
                Log.d(TAG, "exception is running\n");
            }

        }
    }).start();
}
idris
  • 291
  • 3
  • 7

1 Answers1

0

people , android pie has a security patch that basically allows only https not http traffic as a result you cannot use http://url.com you must use https://url.com or change the manifest file you can check that out here

idris
  • 291
  • 3
  • 7