Android Question Http client request (memory cleaner)

Discussion in 'Android Questions' started by carloz, Jul 9, 2015.

  1. carloz

    carloz Member Licensed 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()
    Code:
    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
  2. Erel

    Erel Administrator Staff Member Licensed User

    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.
     
  3. carloz

    carloz Member Licensed User

    thnx Erel,

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

    regards
    carloz
     
Loading...