I would like to provide the possibility to change some settings of the Android keyboard (only this keyboard).
What I've tried:
1. Accessing the Shared Preferences: Can't be done, because they are internally.
2. Start the SettingsActivity: This crashes because the SettingsActivity
is not exported
. I also tried starting it with the package context of the Android keyboard.
3. Open the settings: Android proviedes some possibilities to open the system settings. But with them I can only open the system settings and not the IME settings.
Based on the documentation the SettingsActivity
should receive an intent filter for ACTION_MAIN that indicates this activity is the main entry point for the IME application.
Can I change the settings of the keyboard somehow by myself? If this is not possible can I open the SettingsActivity
?