Android Question Posting HTTP Request and closing activity

Discussion in 'Android Questions' started by Derek Jee, Jul 29, 2015.

  1. Derek Jee

    Derek Jee Active Member Licensed User

    Hello there

    I am sending a request on save and after the save button has been pressed and validation has been checked I call a class which sends a HTTP request. After calling the class I finish the activity. Doing this though does not allow the job to be finished and I get a message "Object context is paused. Ignoring CallSubDelayed: JobDone". If I do not finish the activity then the request is made and the jobdone is run.. Should I run this in a service instead or is there another way of completing the jobdone and closing the activity?

    Thank you for your help..

  2. DonManfred

    DonManfred Expert Licensed User

    Finish the activity in jobdone then...
  3. Derek Jee

    Derek Jee Active Member Licensed User

    Hi Manfred

    I do not know how to do this as it is in a separate class. I did spot another user who had solved their similar problem but it did not work for me.. Any tips on how to would be very nice :)

    Thank you,

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice