Dear,
Can I know where is the problem with this code? Thanks
Can I know where is the problem with this code? Thanks
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 job As HttpJob
Dim ConnexioInternet As Boolean
End Sub
Sub JobDone (job As HttpJob)
If job.JobName="Job1" And job.Success=False Then
ConnexioInternet = False
Else
ConnexioInternet = True
End If
job.Release
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")
myfunction
job.Initialize("Job1", Me)
job.Download("http://www.google.com")
End Sub
Sub myfunction
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.stackoverflow.com")
End Sub