In Android Enabling input was working fine before but when I tested in Android 14 (sdk 34), I'm getting following exception.
Fatal Exception: java.lang.SecurityException: Settings key: <enabled_input_methods> is only readable to apps with targetSdkVersion lower than or equal to: 33 at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:3547) at android.provider.Settings$Secure.getStringForUser(Settings.java:9482) at android.provider.Settings$Secure.getString(Settings.java:9448)
Need help
According to android official documentation:
Here is the Link of official docs.