问题
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