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
I wrong with copy and paste. The code correct in my project is:

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

I see the page but as i said in the #1 post, after entering user and password, refresh and does not enter.

If i do same thing in FireFox or Chrome work without problem:




Any idea.
Thanks ( and sorry again for #3 post )
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
Samsung Note 3 Neo / Android 4.4.2
I dont understand because dont work about my device
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
how you login ?
i have written your username and password and hit the login button on the page and voila i was logged in

Of course. But when i insert username and pw and click about login...refresh page and nothing
 
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
i have test it now with a galaxy tab7 with android 4.4.2 and it not works
but after i hit the login button a message will pop up and closes immediately the only word i can read was something with cockies....
Yes but is only "Information about cookies".
So have problem with Android 4.X
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…