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:
- Is the address you are connecting to on the internet, and not on your LAN?
- Can you connect to other addresses on the phone in your program?
- Can you connect to other addresses on the phone outside of your program? (Browser, etc.)
- 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" />
精彩评论