我的应用程序通过 WiFi 运行.但在android中不超过3G?有什么猜测吗? [英] My App works over WiFi. But not over 3G in android? Any Guesses?

查看:17
本文介绍了我的应用程序通过 WiFi 运行.但在android中不超过3G?有什么猜测吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个目标版本为 4 (Android 1.6) 到 7 (Android 2.1) 的应用程序.我在开发手机 2(Google-Io-Device 1.6 版本)上测试了这个应用程序.我正在通过 Internet 进行一些 xml 解析.我在我的清单上设置了 <uses-permission>.它在 WI-FI 网络中运行良好.但它不适用于带有 3G 网络的 Motorola Droid 2.1.3G网络还有什么更具体的事情要做吗?任何的想法?

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?

提前致谢.

我的应用程序通过 WiFi 网络运行.但不能超过 3G 网络.有什么猜测吗?

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

推荐答案

仅限android.permission.INTERNET.如果您要连接的服务器位于路由器/防火墙后面,则很可能只能从您的本地网络访问该服务器.一个简单的测试是尝试在系统浏览器应用中打开您尝试访问的相同 URL.

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.

从 logcat 查看回溯也很有帮助.

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

这篇关于我的应用程序通过 WiFi 运行.但在android中不超过3G?有什么猜测吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆