errorcode-inputmethod-framework.md 3.3 KB
Newer Older
E
ester.zhou 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
# Input Method Framework Error Codes

## 12800001 Package Manager Error

**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 invoked to obtain information.

**Possible Causes**

The package manager is not working correctly.

**Solution**

None

## 12800002 Input Method Engine Error

**Error Message**

Input method engine error.

**Description**

This error code is reported when an input method API fails to be invoked.

**Possible Causes**

The input method process is suspended.

**Solution**

Check whether the input method process is running properly. For example, click the input text box in an appliccation and check whether the input keyboard is displayed.

## 12800003 Input Method Client Error

**Error Message**

Input method client error.

**Description**

This error code is reported when the API for showing or hiding the keyboard fails to be invoked by a third-party application.

**Possible Causes**

The input method is disconnected from the third-party application due to a service error with the application.

**Solution**

Bind the input method to the third-party application again: Close the background process of the third-party application, start the application again, and touch an input text box. If the keyboard is displayed properly, the issue is resolved.

## 12800004 Key Event Processing Error

**Error Message**

Key event processing error.

**Description**

This error code is reported when a key event error occurs.

**Possible Causes**

An exception occurs during key event distribution, consumption, or listening.

**Solution**

None

## 12800005 Configuration Persistence Error

**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.

## 12800006 Input Method Controller Error

**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

## 12800007 Input Method Setter Error

**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

## 12800008 Input Method Manager Service Error

**Error Message**

Input method manager service error.

**Description**

This error code is reported when an API of the [input method framework](../apis/js-apis-inputmethod.md) fails to be invoked.

**Possible Causes**

The input method manager service fails to be obtained.

**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.