开发者

Android How to enable/disable ethernet from an application?

How can i enable/disable the ethernet 开发者_运维百科from my android app? There is no EthernetManager in SDK like WifiManager.


Android comes with ifconfig (configure arbitrary network and netmask, also to put the network up or down). and dhcpcd (obtain and use dynamic ip). Both commands work for me. I cannot find any GUI tools so far.

Unfortunately, this is currently only possible with the rooted device.


No, that's not possible in Android, sorry.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜