Blankj / AndroidUtilCode

:fire: Android developers should collect the following utils(updating).
https://blankj.com/2016/07/31/android-utils-code/
Apache License 2.0
33.32k stars 10.69k forks source link

android 10 版本打开wifi 方式已经失效,能否适配下新的方式? #1778

Open 1216845248 opened 1 year ago

1216845248 commented 1 year ago

描述需求

简洁地描述下需求。

可借鉴的

如果有的话,可以给出一些参考文章、链接、代码

请删除当前行及以下内容

感谢支持 AndroidUtilCode.

cwh-github commented 1 year ago

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

AdminQQZ commented 11 months ago

提 pr 上来