开发者

Destination unreacheable (Android mobile)

I have coded a Web call, but when i want to try my Android a开发者_如何学JAVApplication into the Android device, the response is a socket exception "unreachable destination" (in my mobile device), but if i try with Android Simulator works well (no problems, no exception). My mobile device is connected via UMTS to the service provider, no WIFI.

My Android model and firmware is the following:

HTC Magic Firmware: 1.6.

Thanks a lot.


Sounds like a network issue, can you check the following:

  1. Is the address you are connecting to on the internet, and not on your LAN?
  2. Can you connect to other addresses on the phone in your program?
  3. Can you connect to other addresses on the phone outside of your program? (Browser, etc.)
  4. Can you connect to the address on the phone outside of your program? (Browser, etc.)


Did you enable internet permissions in your manifest?

<uses-permission android:name="android.permission.INTERNET" />
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜