title: Upload image and video on background without using asynch task in Android
body: <p>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.</p>
  
  <p>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?</p>
  
  <p>I am writing below my code on button click event for asynch task:</p>
  
  <pre><code>  UploadDataInBackground uploader = new UploadDataInBackground();
    uploader.execute(ReplyForm.this, true, replyform);    // it is asynch class
  </code></pre>