Top "Android-networking" questions

The Android networking subsystem.

Android Volley MalformedURLException Bad URL

After making a second network request using Volley, I always get this error. It doesn't seem to matter what the …

android android-volley android-networking okhttp
ConnectivityManager getActiveNetworkInfo null pointer exception

I see occasionally null pointer exception in connectivity manager. From intent service I check network state by isOnWIFI(this). Exception …

android android-service android-networking
what is the default time out value of java.net.Socket in android?

I'm developing a mobile application for android. There, I creating socket and transfer data between android mobiles and windows application (…

java android sockets android-networking socket-timeout-exception
Why is HttpUrlConnection throwing an SSLException while on a mobile data connection?

When using Android's HttpUrlConnection library to make an HTTPS request, I sometimes see the following exception being thrown: javax.net.…

java android ssl android-networking
Cannot make a static reference to the non-static method getSystemService(String) from the type

I have this function which network connection public boolean isNetworkConnected() { ConnectivityManager conManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = conManager.…

android android-intent android-networking android-internet
Google Cloud Messaging - messages sometimes not received until network state changed

While working on a little project that integrates with GCM, I've stumbled across a bit of a strange issue. Some …

android google-cloud-messaging android-networking
Android Broadcast Address

I am making a Client Server application for my Android phone. I have created a UDP Server in Python which …

java android udp broadcast android-networking
Change mobile network mode (gsm, wcdma, auto)

I want to change the preferred network mode ie. gsm or wcdma or auto, programmatically, from code, on Android. Is …

android android-networking telephony
OKhttp PUT example

My requirement is to use PUT, send a header and a body to server which will update something in the …

android retrofit okhttp android-networking androidhttpclient
Square`s OkHttp. Download progress

Is there any way to get downloading file progress when using square`s OkHttp? I did not find any solution …

android android-networking okhttp