I am developing an app on Android 11 and I want to open only a specific settings screen from the app.
However, the settings screen in Android 11 is displayed in two columns, so I can select other settings from the menu on the left. Is there any way to hide the left menu (red frame)?
The code below did not solve the problem.
startActivity(new Intent(ACTION_DATE_SETTINGS));
Intent intent = new Intent();
intent.setClassName(
"com.android.settings",
"com.android.settings.Settings$DateTimeSettingsActivity"
);
startActivity(intent);