I've been building my first app and all has been going well. I've been able to get everything functioning as expected with few issues. Now I changed the Build to Release, from Debug, and as soon as I click on my button to pull data from my main jdbc database to the local database I'm getting a strange error. I can't tell if it's something in the local database or the connection to the jdbc database, or unrelated to either. The error I get is:
main$ResumableSub_btnRetrieve_Clickresume (java line:508)
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273)
First of all - How do I know what is failing?
Second - How do I correct it? I'm not familiar with java much but I can read the source lines generated.
main$ResumableSub_btnRetrieve_Clickresume (java line:508)
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1273)
First of all - How do I know what is failing?
Second - How do I correct it? I'm not familiar with java much but I can read the source lines generated.