How to launch an Android SubSettings Fragment? -
For example, how do I launch user settings? It has not been implemented as its activity, so I'm not sure how to get it started.
Below are some other similar questions but these are either more common or more specific. My question is to start an arbitrary multilingual piece piece.
You start with sub-certification activity and Android: Show_frame Additional Android settings can launch a sub-screen with the name of the full-qualified category suitable for the preference preference category.
For example, to start UserSettings:
ADB shell start-n com.android.settings / com.android.settings.SubSettings -e: android : Show_fragment com.android Settings.users.UserSettings
To start DeviceInfoSettings:
adb shell start-n com.android.settings / com. Android.settings.SubSettings - e: Android: show_fragment com.android.settings.DeviceInfoSettings
These examples use 'adb shell start', but in principle you can use this java code Can edit (edit: Unfortunately, you have a system Signed with the Minister, otherwise you will get a security exception). Note that the key for this extra is a colon in front of it. To find other settings, check Android source and look for sub-categories of priority in the package / app / settings.
The situation was different in the Frei and before those activities were used to implement the sub-screen setting, so to call startActivity () with any component name or action string Normal method can be launched directly into a sub-screen (for example SoundAndDisplaySettings). This system still works for some settings sub-screens, for example, to bring a WiFi picker, you can start
ADB shell- a android.net.wifi PICK_WIFI_NETWORK
Comments
Post a Comment