Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

HTTP Call Over 2G/3G network

OP android_code_chef

2nd April 2014, 12:23 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Apr 2014
I need help in implementing one solution. I want to make HTTP call on 2G/3G network if both the networks are available(i.e Wifi and 2G/3G). I need to set the preference to use mobile cellular network.

For this I tried using the functions of ConnectivityManager class such as setNetworkPrefrence, starUsingNetworkFeature, stopUsingNetworkFeature and its working fine but it is taking 2-3 seconds to switch network traffic to 2G/3G network. Is there any other approach by which we can implement this.
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes