Summary of changes in input & amp; language and Calendar after adding Android 4.2 (JB2) to multiple accounts

Source: Internet
Author: User

The most obvious change in JB2 is the addition of support for multiple accounts. In order to figure out the impact of the Multi-account function on each apk, I mainly tested the IME and Calendar functions, now the test results of both are recorded as follows: IME: 1. enter the language set for the input & language option of settings. If multiple users exist, the dialog box "this change affects all users" appears, indicating that the language is shared by all users, if user A sets the language to English, the language of user B also changes to English after logon. This is caused by \ packages \ apps \ Settings \ src \ com \ android \ settings \ LocalePicker. the following code in the java file is controlled: public voidonLocaleSelected (final Locale locale) {if (Utils. hasMultipleUsers (getActivity () {mTargetLocale = locale; showDialog (DLG_SHOW_GLOBAL_WARNING);} else {getActivity (). onBackPressed (); LocalePicker. updateLocale (locale);} the red part is newly added in 4.2. The multi-user judgment is added. If there are multiple users, the dialog box just mentioned is displayed. All users use the same locale. The specific logic is as follows: \ frameworks \ base \ core \ java \ com \ android \ internal \ app \ LocalePicker. java, updateLocale, and other functions call functions in this class. 2. the default input method is LatinIME of Android. When I log on as user A, the "Google PinYin Input Method" is installed. In settings of A, this input method can be selected, however, if you log out and then Log On As B, the settings of B does not have the "Valley Pinyin input method. That is, the third-party apk installed by the user takes effect only for the modified User and does not affect other users. Calendar: log in with user A to create event a, and then log in with user B to create event B. User A cannot see Event B, and user B cannot see event, each user is relatively independent. The implementation of Calendar is in packages \ apps \ Calendar. The specific interface display and other controls can be found in this directory. Its ContentProvider controls and accesses the data related to Calendar. It can be seen that packages \ providers \ CalendarProvider. Currently, only these items are tested. If other changes are found, they will be supplemented later.

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.