Not sure if yours is the same problem that I had.
My app fires off a quick http request to make sure my webservice was reachable.
I also use AppUpdater to check for a new version of my app which runs almost immediately after.
AppUpdater uses http requests also and think they must have clashed somewhere...
To fix it I just use a Wait For on my first request like this:
B4X:
' blip the webservice to see if we can reach it
Log("Checking access")
Dim jobCheck As HttpJob
jobCheck.Initialize("CheckAccess", Me)
jobCheck.PostString(webSite, "Function=CheckAccess)
Wait For (jobCheck) JobDone(jobCheck As HttpJob)
If jobCheck.Success Then
Msgbox("You do not appear to have a connection to xxxxxx at the moment. Please try again later","Warning")
Activity.Finish
Return
End If
jobCheck.Release
I assume you release your jobs too soon. With release the file OkHttpUtils uses will be deleted. If you try to access something like Job.GetString it doesn't find the file the file the data was saved to.
Please check. I had this at the very first beginning.