Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Posts: 1
Registered: ‎02-12-2013
My Device: BlackBerry 10 Alpha Device
My Carrier: None

HttpGet fails for no reason

Hi, I have recently ported an Android app (fast and simple by the way).

App runs perfectly except for the server request. I am using a DefaultHttpClient to do a HttpGet request to a server so it obtains certain info in xml. This works perfect on Android, but same code fails on a BB10 alpha device. 

The error is "java.net.UnkownHostException: www.whatever.com"

URL is correct, and I am able to access the same URL from the device default browser. 

Any ideas? Thanks!

New Contributor
Posts: 9
Registered: ‎07-27-2012
My Device: Z10 LE, 9900, Playbook, Dev Alpha
My Carrier: Orange

Re: HttpGet fails for no reason

Can you check you didn't remove by mistake the INTERNET permission in AndroidManifest?