This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Package manager error.
Description
This error code is reported when an API of the package manager, such as getInputMethods and listCurrentInputMethodSubtype, fails to be called to obtain information.
Possible Causes
The package manager is not working correctly.
Solution
None
Error Message
Input method engine error.
Description
This error code is reported when an input method API fails to be called.
Possible Causes
The input method process is suspended.
Solution
Check whether the input method process is running properly. For example, click the text input box in an application to check whether the input keyboard is displayed.
Error Message
Input method client error.
Description
This error code is reported when the API for showing or hiding the keyboard fails to be called by a third-party application.
Possible Causes
Solution
Error Message
Not an input method extension.
Description
This error code is reported when an API exclusive to input methods is called by an application of another type.
Possible Causes
An API that can be called only by an input method is called by an application of another type.
Solution
Call the API only in an input method.
Error Message
Configuration persisting error.
Description
This error code is reported when the configuration fails to be saved during input method switching.
Possible Causes
An exception occurs with the system parameter configuration module.
Solution
Run the hdc shell param get persist.sys.default_ime command to check the default input method parameters. If the parameters are displayed, the system parameter configuration module is working properly. In this case, restart the device and try again.
Error Message
Input method controller error.
Description
This error code is reported when the input method controller fails to be obtained.
Possible Causes
An error occurs during invoking of the getCotroller API.
Solution
None
Error Message
Input method settings extension error.
Description
This error code is reported when an InputMethodSetting instance fails to be obtained.
Possible Causes
An error occurs during invoking of the getSetting API.
Solution
None
Error Message
Input method manager service error.
Description
This error code is reported when an API of the input method framework fails to be called.
Possible Causes
The input method manager service fails to be found.
Solution
Run the ps -A|grep inputmethod command to check for the process ID of the input method service. If the process ID is found, the service is working properly.
Error Message
Input method client is detached.
Description
This error code is reported when the current application is not attached to an input method.
Possible Causes
The current application calls showTextInput or hideTextInput when not attached to an input method.
Solution
Call the attach API and then try again.
Error Message
Not default input method configured by system.
Description
This error code is reported when the invoking application is not the preconfigured default input method.
Possible Causes
The API is called by an application other than the preconfigured default input method.
Solution
Use getDefaultInputMethod to query the default input method of the system and determine whether the application uses the default input method. If the application does not use the default input method, this API cannot be called.
Error Message
Text preview is not supported.
Description
Preview of the text input box is not supported.
Possible Causes
Preview of the text input box is not supported.
Solution
Use getEditorAttributeSync to obtain the value of isTextPreviewSupported of EditorAttribute. If isTextPreviewSupported is false, this API cannot be called.
Error Message
Input method panel doesn't exist.
Description
The input method panel of the soft keyboard type is not created.
Possible Causes
The input method panel of the soft keyboard type is not created.
Solution
Use createPanel to create a panel of the soft keyboard type.
Error Message
Window manager service error.
Description
The window manager service is not running properly.
Possible Causes
After the API is called, the system uses the capabilities of the window manager module. This error is thrown due to an error of the window manager service.
Solution
Restart the device and try again.