Skip to content Skip to sidebar Skip to footer

Android Strictmode Policy

Running into some ANR issues with an android application so I implemented the StrictMode policies. Never used this before so hopefully someone can help explain the following: Why d

Solution 1:

The StrictMode violation is showing that you are executing an SQLite query on the UI thread which is causing the ANR issues.

Try performing database interactions on a separate thread, this will prevent the ANR issues and prevent these StrictMode violations showing.

From skimming through that LogCat output it looks like it's occuring in conx.Activities.JobScheduleActivity.onSaveEvent

Some useful reading:

Post a Comment for "Android Strictmode Policy"