Android Question Problem with WebView

MarcoRome

Expert
Licensed User
Longtime User
Hi all, i have this simple code:

B4X:
Sub Globals
    'These global variables will be redeclared each time the activity is created.
    'These variables can only be accessed from this module.
    Private webview1 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("Layout1")
    webview1.Initialize("webview1")
    webview1.LoadUrl("http://www.clubmagellano.it/pagina-personale-tl/")
    Activity.AddView(webview1, 0, 0, 100%x, 100%y)
End Sub

When start i insert Username and Password but return same page.
I try also with another browser (Chrome) in my device and work without problem.
Any idea ?
Thanks
 
Last edited:

MarcoRome

Expert
Licensed User
Longtime User
Well... i try some code in this device ( both have Jelly Bean )
Android 4.1.1 ( Huawei )
Android 4.2.2 ( Asus )
And both work.
I suspect that the problem is with devices with KitKat.

Today this is market ( Lollipo 34,1%, KitKat 35,5%, Jelly Bean ... )

Googl-Platform-Versions-w782.jpg


After a few research i read that:
"Android 4.4 ( KitKat ) has made a big change in the OS’ internals for HTML5 development: it has replaced its original WebKit-based WebView with modern Chromium
Even matching Chrome 30 for Android, the Web View (and potentially the Android Browser) will not have support (no reasons given) for:
•WebGL
•WebRTC
•WebAudio
•FullScreen
•Form validation"

And again THIS.
 
Upvote 0
Top