Hello all,
When my B4A app starts, it verifies the size of a certain file on the internet, so if a certain limit is reached then that file is downloaded. This works just fine when my device gets its internet access from my WiFi network, but when I get out of the house and I run the app with the mobile data plan, I get an android.os error saying NetworkOnMainThreadException.
I set the internet premission in the Android manifest since a few forum posts mentioned this but it doesn't seem to help, actually the app works fine without it but only when I get the internet by WiFi.
Any suggestions/solutions?
Thank you!
Adrian
When my B4A app starts, it verifies the size of a certain file on the internet, so if a certain limit is reached then that file is downloaded. This works just fine when my device gets its internet access from my WiFi network, but when I get out of the house and I run the app with the mobile data plan, I get an android.os error saying NetworkOnMainThreadException.
I set the internet premission in the Android manifest since a few forum posts mentioned this but it doesn't seem to help, actually the app works fine without it but only when I get the internet by WiFi.
Any suggestions/solutions?
Thank you!
Adrian