This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3)

 
Sandeep Panda
Greenhorn
Posts: 8
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UPDATE: I fixed the app crash problem. But now the new problem is proxy can't be resolved.

My PC is connected to the LAN through proxy. I am using the proxy with HttpURLConnection, but it gives error "Unable to resolve host". But I can access internet inside the emulator through the proxy.

Please have a look at my Code.


Where am I doing wrong? Am I setting the proxy in the correct way?

Any help will be highly appreciated.

Regards!
 
James Elsey
Ranch Hand
Posts: 228
Android IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to achieve? You mention downloading the web page but you only check for the HTTP response code.

Can you let us know what you want to do a bit more?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic