简洁地描述下需求。
如果有的话,可以给出一些参考文章、链接、代码
感谢支持 AndroidUtilCode .
vzgqcmou1#
Android 10 好像需要跳转到设置界面手动打开wif
Intent panelIntent = new Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY);startActivityForResult(panelIntent);
https://stackoverflow.com/questions/58075596/turning-on-wifi-using-wifimanager-stops-to-work-on-android-10/63262649#63262649
ma8fv8wu2#
提 pr 上来
2条答案
按热度按时间vzgqcmou1#
Android 10 好像需要跳转到设置界面手动打开wif
Intent panelIntent = new Intent(Settings.Panel.ACTION_INTERNET_CONNECTIVITY);
startActivityForResult(panelIntent);
https://stackoverflow.com/questions/58075596/turning-on-wifi-using-wifimanager-stops-to-work-on-android-10/63262649#63262649
ma8fv8wu2#
提 pr 上来