Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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!
 
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
Boost this thread!