How to open Android Settings Wifi Hotspot Menu Pragmatically in Java?

冷暖自知 提交于 2019-12-25 19:02:05

问题


I want to open below or if this is not possible then below settings

through java code in android. I know i can open settings using

startActivityForResult(new Intent(Settings.ACTION_SETTINGS), 0);

but i am not able to find appropriate strings for either of the above menus. Please if anyone can help.


回答1:


Try this, startActivity(new Intent(Settings.ACTION_WIFI_SETTINGS));



来源:https://stackoverflow.com/questions/55083427/how-to-open-android-settings-wifi-hotspot-menu-pragmatically-in-java

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!