wood burning stoves 2.0*
The moose likes Android and the fly likes Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3)" Watch "Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3)" New topic
Author

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

Sandeep Panda
Greenhorn

Joined: Nov 07, 2011
Posts: 8

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

Joined: Dec 21, 2007
Posts: 228

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?


Kind Regards, James. OCPJP 1.6 || My SCJP / OCJCP Study Notes
Interested in : SCJP, Google App Engine, Stripes, Android;|| My Bite-Size SCJP Study Blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3)