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();
}