Skip to content
This repository was archived by the owner on Sep 21, 2024. It is now read-only.
This repository was archived by the owner on Sep 21, 2024. It is now read-only.

Rework DB connection #2

@janesth

Description

@janesth

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    lazy programmingLazy code or work around - please fix.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions