Android Question ResponseError. Reason: java.net.UnknownServiceException: CLEARTEXT communication to www.videoservice.us not permitted by network security policy, Resp

paul allen

Member
Licensed User
Longtime User
i'm getting this error message when trying to load a xml file from my web site, now it was working ok a week ago but just started, this is the xml file.
<?xml version="1.0" encoding="ISO-8859-1"?>
<m>
<c>
<w>baulk</w>
<d>the space, usually 29 inches deep, between the baulk line and the bottom cushion</d>
</c>
</m>
it loads ok on computer leapdroid simulator, if works ok on an older samsung phone, but using a52 samsung not working.
any input would be appreated.
Paul
 

paul allen

Member
Licensed User
Longtime User
thank you for your quick reply but still not working, it loads the layout and then shuts off with that error.
i added what you sent: see:

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="29"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
CreateResourceFromFile(Macro, Core.NetworkClearText)
'End of default text.

hope i put in correct location of the manafest.
Paul
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
read:
 
Upvote 0

paul allen

Member
Licensed User
Longtime User
well after many hours troubleshooting if changed httputil2 library to OKhttputil2 and fixed problem.
thanks to all for helping.
Paul
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…