Prateek Jassal
Prateek Jassal

Reputation: 99

Forcing to use 3g over Wi-Fi Android

I have an issue with an application I'm developing for Android 2.3.3.

It's connected to a Wi-Fi access point, and at the same time it is supposed to download some data, but this has to be done using 3G.

I tried searching for this, and found some relevant stuff but could not make it work. I checked out the setNetworkPreference method of the ConnectivityManager, and, even when set to use 3G, it does not download the data and ends up downloading it via Wi-Fi.

Any other ideas how I can do this without disconnecting from the Wi-Fi access point?

Upvotes: 2

Views: 3177

Answers (1)

Cassandra Leone
Cassandra Leone

Reputation: 11

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.

Upvotes: 1

Related Questions