Android Question Http client request (memory cleaner)

carloz

Member
Licensed User
Longtime User
hi all,

I have a service which uses httputils2 to check a mysql table and shows a notification...(1 process 2 services)
Everything works perfectly dandy and well...
Once i close/kill the app from the recent app list, my service restarts at the scheduled time, but httputils does not start again(1 process 1 service)
I have to manually open the app again to start httputls2 service...

Android OS 4.4.2

Following is the proc i use -- called from service_start()
B4X:
Sub checkoffers()
'ToastMessageShow("checking offers now " & p.GetDeviceId,False)
 
Dim req As HttpRequest
req.InitializeGet(actscreen.RootPath & "/checkoffer.php?ID=" & p.GetDeviceId)
hc.Execute(req, 1) 
End Sub



Can some think of why this could happen?

regards
carloz
 
Last edited:

carloz

Member
Licensed User
Longtime User
thnx Erel,

shifted to httpUtils2...and yes 4.4 did not restart service after user killed app..

regards
carloz
 
Upvote 0
Top