判断当前的网络状态并跳转到系统设置
//调用方法,返回当前的网络连接情况 boolean networkConnected = isNetworkConnected(MainActivity.this); if(networkConnected) { Toast.makeText(MainActivity.this,"有网络连接",Toast.LENGTH_SHORT).show();