我使用下面的代碼從我的一個網絡接口獲取DHCP服務器地址: System.Net.NetworkInformation.NetworkInterface networkInterface;
// ... get one of the network interfaces
var properties = networkInterface.GetIPProperties();
var ad
我想在本文中提到的使用NetworkUtils中的rundhcp()函數。 How do you get the current DNS servers for Android? 我需要讓DHCP對象移動連接。但是NetworkUtils類似乎不是sdk的一部分。它也沒有在開發者文檔中提及。 如何在我的應用程序中包含和使用NetworkUtils類。