Hi
i tried this symple code but Always i get a White page :
Manifest :
Tested on Android 8 and Android 7 devices , where i wrong ?
i tried this symple code but Always i get a White page :
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim wv As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("main")
wv.Height=Activity.Height
wv.Width=Activity.Width
wv.LoadURL("www.google.it")
End Sub
Manifest :
B4X:
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="26"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
AddPermission(android.permission.INTERNET)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
Tested on Android 8 and Android 7 devices , where i wrong ?