0

I developed an application which calls a webservice through Wi-Fi and if Wi-Fi is not availabel then it switches to 3G.

The problem is , webservice call is working on Wi-Fi but not working on 3G on Android 4.1.2 Devices.

I browsed the webservice on browser on 3G , it is browsing fine.

I need help in this.

Code of Network Rechability

android.net.ConnectivityManager conMgr =  (android.net.ConnectivityManager)General.MainContext.getSystemService(Context.CONNECTIVITY_SERVICE);          

result = conMgr.getActiveNetworkInfo().isConnectedOrConnecting();
Hammad Shahid
  • 2,216
  • 5
  • 32
  • 60

0 Answers0