• 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