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
{{ message }}
This repository was archived by the owner on Sep 21, 2024. It is now read-only.
Issue: Currently it's skipping some policy based on the current android version
DBConnection.java if (android.os.Build.VERSION.SDK_INT > 9) { StrictMode.ThreadPolicy gfgPolicy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(gfgPolicy); }
Solution: do it the way it's supposed to be done in this version
Issue: Currently it's skipping some policy based on the current android version
DBConnection.java
if (android.os.Build.VERSION.SDK_INT > 9) { StrictMode.ThreadPolicy gfgPolicy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); StrictMode.setThreadPolicy(gfgPolicy); }Solution: do it the way it's supposed to be done in this version
Resources: https://www.geeksforgeeks.org/how-to-fix-android-os-networkonmainthreadexception/