Detect Network State change using JobSchedulers in Android
With Android N, You cannot statically register a Broadcast receivers for CONNECTIVITY_CHANGE intent. From http://developer.android.com/preview/features/background-optimization.html#connectivity-action Google documentation suggest using Job Schedulers to perform this task. Is it possible to detect network state change (LTE to wifi) and vice versa using Job Schedulers in Android? Yes and no. The JobInfo.Builder.setRequiredNetworkType() method allows you to schedule jobs to run when specific network conditions are met. The network type can be one of three values: JobInfo.NETWORK_TYPE_NONE : No