B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("screen")
Dim result As Int
If TestConnectivity=False Then
result=Msgbox2("no internet, try again?", "Problem","Yes","","No",Null)
If result = DialogResponse.Positive Then StartActivity("choose")
If result = DialogResponse.NEGATIVE Then Activity.finish
End If
job1.Initialize("Job1", Me)
job1.Download("http://www.google.com")
End Sub
sub TestConnectivity
return false //just for testing dummy sub
end sub
What is my mistake please?