Android Question httputilis2 handling jobdone event

jazzzzzzz

Active Member
Licensed User
Longtime User
Am sending a request to a server (http post) to upload some file and server gave me a reply after uploading file only,so while the uploading is happening i wanna go to another activity.

but when the (uploaded success)reply come the old activity reloads by pausing my current activity because request is created by

B4X:
upload.Initialize("upload",Me)

I cant change "me" to any other activity because there will be lot of activities and i cant say in which activity user may be currently using...

So basically i wanna skip that reply...I just don't need reply from server..Is there any way?
 

jazzzzzzz

Active Member
Licensed User
Longtime User
Yes. Use a service to manage the communication.
ok thanks by service it working..can i destroy service from jobdone event? jobdone is in service module(i wanna destroy the service from inside service itself)
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…