0

I have an Android application that uses URLConnection to connect to a REST service and gets some content. I am getting a ton of complaints that it doesn't work over a 4G connection like WiMAX, though it works fine over WiFi or 3G connections. Is there anything special I have to do before attempting the REST request to allow it to use the 4G connection? I am using Android 2.2.

PS: This is very hard to test as I only have Droid and a HTC Hero to work with.

manlio
  • 18,345
  • 14
  • 76
  • 126
Merkidemis
  • 2,801
  • 2
  • 20
  • 26

1 Answers1

0

These types of Android problems are difficult to debug as there are so many platforms and so many variables.

The only thing I can think of is that for some reason over 4G like Sprint your servers DNS is not registered so hitting your RESTful service like http://www.hello.com is not resolving to your actual server IP.

Because other than that it makes no sense why it would work on 3G/WIFI but not 4G.

Melloware
  • 10,435
  • 2
  • 32
  • 62
  • I agree that having 4G behave differently then 3G/wifi makes no sense. I wrote a test program and had a 4G phone user run it, and I am thinking that your thought on DNS might not be far off. The line connManager.requestRouteToHost(connManager.getActiveNetworkInfo().getType(), ipToInt("72.14.204.99")); returns false when he runs under 4G, but true when on 3G. – Merkidemis Nov 18 '10 at 14:36