myathinzar
Results
2
comments of
myathinzar
just clone or download and open in android studio and run it, which can reproduce this
use following to open hotspot on 8.0, ` Intent intent = new Intent(Intent.ACTION_MAIN, null); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.android.settings", "com.android.settings.TetherSettings"); intent.setComponent(cn); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity( intent);`