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

1

-1

I want to open below enter image description here or if this is not possible then below settings enter image description here

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.

Vitality answered 10/3, 2019 at 0:42 Comment(0)
M
1

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

Martinson answered 6/8, 2019 at 0:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.