I need to upload some data like Image and Video to server using Xml web service. I am able to upload using asynch task in Android but I need to upload all data to server in background means there should not be display any progress bar.
So I think to use service for achieving the same, is using a service the right approach? How could I convert activity to service. Are there any other ways to achieve this?
I am writing below my code on button click event for asynch task:
UploadDataInBackground uploader = new UploadDataInBackground();
uploader.execute(ReplyForm.this, true, replyform); // it is asynch class