Android判断网线是否插入的方法

1.通过命令:cat/sys/class/net/eth0/carrier2.读取carrier文件信息publicbooleanisNetworkConnected(){Filefile=newFile("/sys/class/net/eth0/carrier");intsta
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×