Hi
If i add httpjob before checking gps is on or off, code execution stop at line 26, but when i remove httpjob (line 2 until 21) gps work fine, any help appreciate. Thanks in advance.
Experiment block:
Sub Activity_Resume
'//try experiment ------------------
If alreadyversioncheck = False Then
Dim j As HttpJob
j.Initialize("",Me)
j.Download("https://somesite.com/pvt/maps/ver.php")
Wait For (j) jobdone(j As HttpJob)
If j.Success Then
Dim cloudver As Int = j.GetString
If versi <> cloudver Then
ToastMessageShow("Update your apps",True)
End If
Else
ToastMessageShow("Koneksi error",True)
End If
j.Release
alreadyversioncheck = True
End If
'//try experiment ------------------
If Label1.Text = "" Then
ProgressDialogShow2("Loading location...",False)
End If
If Starter.gps1.GPSEnabled =False Then
StartActivity(Starter.gps1.LocationSettingsIntent)
Return
Else
Wait For MapFragment1_Ready
log("Map is ready")
gmap = MapFragment1.GetMap
rp.CheckAndRequest(rp.PERMISSION_ACCESS_FINE_LOCATION)
Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
If Result Then
Else
End If
End If
End Sub
If i add httpjob before checking gps is on or off, code execution stop at line 26, but when i remove httpjob (line 2 until 21) gps work fine, any help appreciate. Thanks in advance.
Last edited: