D
Deleted member 103
Guest
Hi,
when I use this code crashes my app, but not always.
The app can then be terminated only with killing.
What can it be?
when I use this code crashes my app, but not always.
The app can then be terminated only with killing.
What can it be?
B4X:
Private Sub CheckInternetConnection
Dim job As HttpJob
job.Initialize("IsInternet", Me)
job.Download("http://www.google.com")
End Sub
Sub JobDone(Job As HttpJob)
If Job.Success Then
Select Job.JobName
Case "IsInternet"
Log("JobDone: Starter.billmanager.GetOwnedProducts")
Starter.billmanager.GetOwnedProducts
Case Else
End Select
Else
Log("JobDone: GetOwnedProductsOffline")
GetOwnedProductsOffline
End If
Job.Release
StopService(HttpUtils2Service)
End Sub
** Activity (main) Pause, UserClosed = false **
Activity_Pause UserClosed=false
** Service (httputils2service) Create **
** Service (httputils2service) Start **
sending message to waiting queue (CallSubDelayed - JobDone)