Hello, 2 questions.
1°) In WebView I load a page and if I load another address is always the first address that remains?
2°)How do you get a full page in a WebView?
Thank you
1°) In WebView I load a page and if I load another address is always the first address that remains?
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim UrlWeb As String
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim Button1 As Button
Dim Button2 As Button
Dim Button3 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Main")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
UrlWeb= "http://jazz.ankor.free.fr/"
StartActivity(web)
End Sub
Sub Button2_Click
UrlWeb= "http://cerclepyreneen.free.fr/"
StartActivity(web)
End Sub
B4X:
'Activity module
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim WebView1 As WebView
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Web")
WebView1.Initialize("Mapweb")
Activity.AddView(WebView1,0,10%y,100%x,90%y)
WebView1.LoadUrl(Main.UrlWeb)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub BtnRetour_Click
StartActivity(Main)
End Sub
2°)How do you get a full page in a WebView?
Thank you