2

我为 Android 2.3.3 开发的应用程序有问题。

它连接到 Wi-Fi 接入点,同时它应该下载一些数据,但这必须使用 3G 完成。

我尝试搜索此内容,并找到了一些相关的东西,但无法使其正常工作。我检查了setNetworkPreferenceConnectivityManager 的方法,即使设置为使用 3G,它也不会下载数据并最终通过 Wi-Fi 下载数据。

在不断开 Wi-Fi 接入点的情况下如何做到这一点的任何其他想法?

4

1 回答 1

1

I literally just came across this on another forum. It looks like the solution to your question.

ICS tends to automatically add proxys to APN info which sometimes makes apps not work on 3G.

Thread says the following...

"This helped a couple of people on a Dutch forum, don't know if it's provider or country-related and if there even are users here that have these issues, but still wanted to let you know:

I have just fixed why some apps work only with WiFi but not on 3G. ICS apparently automatically added Proxy-settings to your APN, in my case Vodafone (NL). This is not necesarry to even make use of mobile internet, and it also prevents some apps from accessing the internet. I removed the Proxy-settings et voila, it works perfectly again!

Fix: Settings -> Press 'Mobile Network' (not Off-On!) -> Names accespoints -> Click your provider -> Remove 'Proxy' and 'Port'"

Hope it helps.

于 2012-10-12T06:26:28.860 回答