Android Question It works only in debug mode

slowtime

Active Member
Licensed User
Longtime User
Hi, my app works well only indebug mode, in release mode, I can see this message in log " at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1675)"
Thank you for help.

Enviroment
C:\java\jdk-19.0.2\bin\javac.exe
C:\Android\platforms\android-34\android.jar

additional libs
Videomjpeg 1.0
Net 1.81

This is manifest:
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/> ' 4 26 ok
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:usesCleartextTraffic, "true")

SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddPermission(android.permission.INTERNET)
AddPermission(android.permission.ACCESS_NETWORK_STATE)
 

josejad

Expert
Licensed User
Longtime User
I can't understand because it don't run in release mode
He's trying you can find something related with the error you get, because it's not possible to help you without seeing your code or an example project
 
Upvote 0

slowtime

Active Member
Licensed User
Longtime User
He's trying you can find something related with the error you get, because it's not possible to help you without seeing your code or an example project
Thank you, but it is not a code problem because it run in debug mode well, I think a problem about permissions, maybe.
 
Upvote 0
Top