The default Android input method selects multiple languages and defaults to one of them.

Source: Internet
Author: User

The default Android input method selects multiple languages and defaults to one of them.

1. Adjust the input method on the device first

Set> Language Input Method> Android keyboard (AOSP), select the language to be selected in the input language, for example, select "English (USA)" and "Spanish:


2. select fried ky "http://www.bkjia.com/kf/web/php/" target = "_ blank" class = "keylink"> PHPtc2zyuTI67eotcTErMjP0 +/keys + CjxwPgq08r + keys "http://www.2cto.com/uploadfile/Collfiles/20150115/2015011508480719.png" alt = "\">


3. view the Setting database file <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + Environment + CrTyv6pTZWN1cmWx7aOssum/Environment + CjxpbWcgc3JjPQ = "http://www.2cto.com/uploadfile/Collfiles/20150115/2015011508480720.png" alt = "\">

Default_input_method com. android. inputmethod. latin/. LatinIME

Enabled_input_methods com. android. inputmethod. latin/. LatinIME; 816242702;-921088104

Selected_input_method_subtype 816242702


4. Modify the SettingsProvider File

Frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper. java

Put the following two rows in the private void loadSecureSettings (SQLiteDatabase db) function (note the loadSecureSettings function, not loadSystemSettings ):

 loadSetting(stmt, Settings.Secure.ENABLED_INPUT_METHODS, defaultIme);            loadSetting(stmt, Settings.Secure.DEFAULT_INPUT_METHOD, defaultIme);

Modify to the following three rows:

LoadSetting (stmt, Settings. secure. ENABLED_INPUT_METHODS, "com. android. inputmethod. latin /. latinIME; 816242702;-921088104 "); // loadSetting (stmt, Settings. secure. DEFAULT_INPUT_METHOD, "com. android. inputmethod. latin /. latinIME "); // The default input method is the system input method loadSetting (stmt, Settings. secure. SELECTED_INPUT_METHOD_SUBTYPE, "816242702"); // default language of the Default Input Method


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.