Android Question WebView doesn´t run

carloschueca

Member
Licensed User
Longtime User
Hi, everybody.
I have a question.
I have a WebView control and always show same page even I modify the web page.
Maybe is there a cache o silmilar?

Thanks in advance!
 

carloschueca

Member
Licensed User
Longtime User
Can you post your code?

This is my Code Erel:

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region

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.

Private WebView1 As WebView
End Sub

Sub Activity_Create(FirstTime As Boolean)

Dim myw As WebView
myw.Initialize("myw")

Activity.AddView(myw, 0, 0, 100%x, 100%y) 'Your options for size here
myw.LoadUrl("http://www.midominio.com/mobile/info.html")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0

barx

Well-Known Member
Licensed User
Longtime User
well that page doesn't exist so if your always pointing to pages that don't exist, then you will get the same reply
 
Upvote 0

carloschueca

Member
Licensed User
Longtime User
This is my Code Erel:

Ok.Im testing with .LoadUrl("http://www.guiameya.com/mobile/info.html")
But I get a different view than another explorer in PC o mobile phone!!!!
I mean,I always get same even when I change info.html
Thanks in advance
Best Regards

#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region

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.

Private WebView1 As WebView
End Sub

Sub Activity_Create(FirstTime As Boolean)

Dim myw As WebView
myw.Initialize("myw")

Activity.AddView(myw, 0, 0, 100%x, 100%y) 'Your options for size here
myw.LoadUrl("http://www.midominio.com/mobile/info.html")

End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0

jsanchezc

Member
Licensed User
Longtime User
Load url into Sub Resume instead in Sub Create

B4X:
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.

Private WebView1 As WebView
End Sub

Sub Activity_Create(FirstTime As Boolean)

Dim myw As WebView
myw.Initialize("myw")

Activity.AddView(myw, 0, 0, 100%x, 100%y) 'Your options for size here
'myw.LoadUrl("http://www.midominio.com/mobile/info.html")

End Sub

Sub Activity_Resume
myw.LoadUrl("http://www.midominio.com/mobile/info.html")
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Upvote 0
Top