Sub MySQL_BatchResult(data As List, meta As Map)
'Log("MySQL_BatchResult()")
'Log("Time: "&meta.Get("ms")&"ms")
'Log("Size: "&meta.Get("size"))
'For i=0 To data.Size-1
'Log(i&"="&data.Get(i))
'Next
End Sub
Sub MySQL_BatchResult(data As List, meta As Map)
'Log("MySQL_BatchResult()")
'Log("Time: "&meta.Get("ms")&"ms")
'Log("Size: "&meta.Get("size"))
'For i=0 To data.Size-1
'Log(i&"="&data.Get(i))
'Next
End Sub
hi DonMafred,
i examine that check_connection2 stops app until connection is ok. if connection is ok then it gives "true", but if i cut connection, it waits antil connection came back and during this times it stops app. how can can i control if no connection in small time
@tango try this, but I don't know. I'm probably reading your question incorrectly...
B4X:
'Maybe something like this in Activity_Resume will help, but I'm just guessing as I don't have the same issue as you are having.
Sub Activity_Resume
MySQLExe.check_connection
MySQLExe.QueryASync2(....)
End Sub
Sub Activity_Pause (UserClosed As Boolean)
MySQLExe.CloseDatabase
End Sub