C carloz Member Licensed User Longtime User Jul 9, 2015 #1 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() Code: Copy 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: Jul 9, 2015
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() Code: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Jul 9, 2015 #2 Why aren't you using HttpUtils2? Are you sure that the service is started? On Android 4.4 the OS doesn't start services if the user killed the app. Upvote 0
Why aren't you using HttpUtils2? Are you sure that the service is started? On Android 4.4 the OS doesn't start services if the user killed the app.
C carloz Member Licensed User Longtime User Jul 12, 2015 #3 thnx Erel, shifted to httpUtils2...and yes 4.4 did not restart service after user killed app.. regards carloz Upvote 0
thnx Erel, shifted to httpUtils2...and yes 4.4 did not restart service after user killed app.. regards carloz