Answer the question
In order to leave comments, you need to log in
Background data transfer and android 4+, how to replace?
In android 2.3.3 it was possible to get background transfer permission via ConnectivityManager.getBackgroundDataSetting()
In android 4+ this method is deprecated and you can get permission status
NetworkInfo info = connectivityManager.getActiveNetworkInfo();
if (info.isConnected() == true) {
But the thing is, it's always true . Can I ignore this parameter and enable background transfer, or how do I know that the user does not want to transfer data in the background?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question