Cómo eliminar idiomas redundantes en la lista de idiomas de configuración de Android (solo chino e inglés)
1. En el archivo fuente de Android/packages/apps/Settings/src/com/android/settings/inputmethod
/InputMethodAndSubtypeEnabler.java
clase pública. InputMethodAndSubtypeEnabler extiende SettingsPreferenceFragment {
final PreferenceCategory activeInputMethodsCategory = new PreferenceCategory(context);
activeInputMethodsCategory.setTitle(R.string.active_input_method_subtypes);
//Comentar esta línea root.addPreference(activeInputMethodsCategory);
..........
...........
2. la clase pública InputMethodAndSubtypeEnabler extiende SettingsPreferenceFragment {
}
}
Collections.sort(subtypePreferences);
//para ( int j = 0; j lt; subtypePreferences.size(); j) {
//activeInputMethodsCategory.addPreference(subtypePreferences.get(j));
//} p >
//Comenta las tres líneas anteriores
mInputMethodAndSubtypePrefsMap.put(imiId, subtypePreferences);
}
if (isAutoSubtype) {< / p>
3. p>
//Comentar esta línea PRODUCT_LOCALES = mdpi
//Agregar esta línea PRODU
CT_AAPT_CONFIG:= mdpi
//Agrega esta línea # Configuración de idioma
//Agrega esta línea PRODUCT_LOCALES:= en_US zh_CN
# codificador de video y cámara p>
PRODUCTO_PACKAGES = \