Android Question Posting HTTP Request and closing activity

Derek Jee

Active Member
Licensed User
Longtime 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..

Derek.
 
Finish the activity in jobdone then...
 
Upvote 0
Finish the activity in jobdone then...

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,


Derek
 
Upvote 0
Back
Top