My App works over WiFi. But not over 3G in android? Any Guesses?

会有一股神秘感。 提交于 2019-11-28 09:20:00

问题


I have developed an App that target version is 4 (Android 1.6) upto 7 (Android 2.1). I tested this app on the dev phone 2 (Google-Io-Device 1.6 version). I am doing some xml parsing stuff through Internet. i set the <uses-permission> on my Manifest. it works fine in WI-FI Network. But its not working in the Motorola Droid 2.1 with 3G Network. Is there any more specific stuff to do for 3G network? Any Idea?

Thanks in advance.

Edit:

My App works over WiFi Network. But not over 3G Network. Any Guesses?


回答1:


Only android.permission.INTERNET. It's most likely that the server you're connecting to is only accessible from your local network, if it's behind a router/firewall. An easy test is to try to open the same URL you're trying to hit in the system Browser app.

It'd also be helpful to see the traceback from logcat.



来源:https://stackoverflow.com/questions/3312065/my-app-works-over-wifi-but-not-over-3g-in-android-any-guesses

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!