File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: Android: Thread Exiting with uncaught exception while using httpUrlConnection (Android 4.0.3)
 
Similar Threads
How to create a toast via button click
url error ,please help
gps not getting user location
SharedPreference not working
Input Data to MySQL Database