-5

I am just a beginner at Android so this question might be stupid. PLease help me out of this.

I am working on an App which requires data to be uploaded on the server. The data could be text, image or a video. I tried to use the following link

http://developer.android.com/reference/java/net/HttpURLConnection.html

and also

http://androidexample.com/Upload_File_To_Server_-_Android_Example/index.php?view=article_discription&aid=83&aaid=106

However I ended up being even more confused. How do I send the data into the server using the ASyncTask doinbackgound method.

Thanks.

prateek_cs_2012
  • 55
  • 1
  • 10
  • 1
    I'm voting to close this question as off-topic because this is better suited for a Google query, rather than a StackOverflow question. – almightyGOSU Jul 21 '15 at 07:52
  • Even after watching those link you can't able to figure it out then how you assure we can help you out??? – Pankaj Jul 21 '15 at 07:53
  • I answered a similar post, you have 3 tutorials and reasons to do with my method. You can read the solution [here](https://stackoverflow.com/a/30913393/3996257). Tell me if I helped you and good programming! – Merlí Escarpenter Pérez Jul 21 '15 at 08:00

1 Answers1

0

I suggest you use a REST Client for your networking needs. They allow easy use of Async Http Requests and even easer exception handling.

These are some the most notable REST Clients available out there:

2hamed
  • 8,719
  • 13
  • 69
  • 112