Top "Android-connectivitymanager" questions

ConnectivityManager getNetworkInfo(int) deprecated

Using compileSdkVersion 23, however trying to support as far back as 9. getNetworkInfo(int) was deprecated in 23. The suggestion was to use …

android networking android-6.0-marshmallow android-connectivitymanager
activeNetworkInfo.type is deprecated in API level 28

I want to use the Connectivity manager which provide the method activeNetworkInfo.type for checking the type of network in …

android kotlin deprecated android-connectivitymanager
How to get network state change on android?

I have broadcast receiver for "CONNECTIVITY_CHANGE". When I print the extra using this: intent.getExtras().toString() I can see …

android android-connectivitymanager networkinfo
How to get WIFI SSID in Android 9.0(PIE)?

How to get WIFI SSID in Android 9.0(PIE)? My code is working fine till android version 8.1.0 but it is not …

android android-wifi android-9.0-pie android-connectivitymanager networkinfo
How to handle network change between wifi and mobile data?

I am building a VoIP app.During a VoIP call when user switches between WiFi to mobile data i have …

android networking android-wifi mobile-data android-connectivitymanager
Android Q, programmatically connect to different WiFi AP for internet

As in Android Q, several WiFi APIs are restricted. I am trying to use alternate APIs to connect to different …

android android-wifi android-developer-api android-connectivitymanager android-10.0
Difference between registerDefaultNetworkCallback and registerNetworkCallback

I came across registerDefaultNetworkCallback and registerNetworkCallback while updating my Android app for API 28. Having reviewed the documentation, I cannot find …

java android kotlin network-programming android-connectivitymanager