Android10判断网络连接的类型的函数实现
作者:互联网
一个函数实现,就不废话了。直接上代码:
private static boolean mobileConnected = false;
private static boolean wifiConnected = false;
private void checkNetworkConnection() {
ConnectivityManager connMgr =
标签:false,函数,checkNetworkConnection,Android10,private,boolean,static,网络连接 来源: https://blog.csdn.net/poolooloo/article/details/120352452