jazzzzzzz Active Member Licensed User Longtime User May 21, 2014 #1 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 Code: 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?
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 Code: 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?
Erel B4X founder Staff member Licensed User Longtime User May 21, 2014 #2 Is there any way? Click to expand... Yes. Use a service to manage the communication. Upvote 0
jazzzzzzz Active Member Licensed User Longtime User May 21, 2014 #3 Erel said: Yes. Use a service to manage the communication. Click to expand... 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: May 21, 2014 Upvote 0
Erel said: Yes. Use a service to manage the communication. Click to expand... 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)
Erel B4X founder Staff member Licensed User Longtime User May 21, 2014 #4 Yes: StopService(Me) Upvote 0
jazzzzzzz Active Member Licensed User Longtime User May 21, 2014 #5 Erel said: Yes: StopService(Me) Click to expand... Perfect... Upvote 0