how to open the following directory:settings/wireless and networks/Tethering and portable hotspot/portable Wi-Fi hotspot settings/configure portable Wi-Fi hotspot/ on butto
Activate Tethering in Java:
private void activeTethering(){
Intent tetherSettings = new Intent();
tetherSettings.setClassName("com.android.settings", "com.android.settings.TetherSettings");
startActivity(tetherSettings);
}
and in Kotlin:
private fun activeTethering(){
val tetherSettings = new Intent().apply {
setClassName("com.android.settings", "com.android.settings.TetherSettings")
}
startActivity(tetherSettings);
}