| | |
| | | package safeluck.drive.evaluation.im; |
| | | |
| | | import android.content.Context; |
| | | import android.net.ConnectivityManager; |
| | | import android.net.NetworkInfo; |
| | | |
| | | import com.anyun.exam.lib.MyLog; |
| | | import com.anyun.im_lib.listener.OnEventListener; |
| | | |
| | | import safeluck.drive.evaluation.app; |
| | | import safeluck.drive.evaluation.platformMessage.JKMessage0002; |
| | | import safeluck.drive.evaluation.platformMessage.utils.MessageEscaper; |
| | | |
| | |
| | | |
| | | @Override |
| | | public boolean isNetWorkAvailable() { |
| | | return true; |
| | | ConnectivityManager connectivityManager = (ConnectivityManager) app.getAppContext().getSystemService(Context.CONNECTIVITY_SERVICE); |
| | | NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo(); |
| | | MyLog.i("IsNetworkAvaliable"+networkInfo!=null&&networkInfo.isConnected()); |
| | | return networkInfo!=null&&networkInfo.isConnected(); |
| | | } |
| | | |
| | | /** |