Android NetworkInterface. What are the meanings of names of NetworkInterface?

后端 未结 2 2056
渐次进展
渐次进展 2021-02-03 10:22

I want to get available network of the current device, so I firstly get networkinterfaces list:

NetworkInterface.getNetworkInterfaces();

Then,

2条回答
  •  無奈伤痛
    2021-02-03 10:57

    ap or swlan interfaces (depending on the Android distribution) can be found when the Mobile Hotspot (Access Point) is activated on an Android device. It might also be associated with a regular wlan interface though (observed on devices where it is not possible to activate the WiFi connection and Mobile Hotspot at the same time, e.g. Android 9 on Galaxy Tab S2).

提交回复
热议问题