Android5.1-Contacts Creation Group

Source: Internet
Author: User

"Related log"
06-23 17:25:00.804:e/groupeditorfragment (6030): No accounts were found.
Groupeditorfragment.java (Packages\apps\contacts\src\com\android\contacts\group)
Line 327 Log

06-23 18:56:31.109:i/activitymanager (1376): Start proc 12138:COM.ANDROID.CONTACTS/U0A4 for activity Com.android.contacts/.activities. Peopleactivity

"Related Code"

Peopleactivity.java (packages\apps\contacts\src\com\android\contacts\activities)
1278MenuItem Addgroupmenu = Menu.finditem (R.id.menu_add_group);

1483private void Createnewgroup ()
1374@override
public boolean onoptionsitemselected (MenuItem Item)
Define actions that correspond to each key
if (Issearchmode) addgroipmenu.setvisible (false);

1366private void makemenuitemvisible (Menu menu, int itemId, Boolean visible)
Select a Visual key

1265@override
public boolean Onprepareoptionsmenu (Menu menu)
Sets whether the key is visible here. Main observation addgroupmenu.setvisible () method
1337 Comment out addgroupmenu.setvisible (true);
Before this sentence, a judgement was made to determine whether the Addgroupmenu was visible

/**
Actionbaradapter.java (apps\contacts\src\com\android\contacts\activities)
*/
Public interface Tabstate {
public static int FAVORITES = 0;
public static int all = 1;
public static int GROUPS = 2;

public static int COUNT = 3;
public static int DEFAULT = ALL;
}

/**
Menuitem.java (apps\tvsettings\settings\src\com\android\tv\settings) packages
The MenuItem called in Peopleactivity is the class's
*/

Groupeditoractivity.java
//

06-23 17:30:09.238:v/windowmanager (1376): Adding window window{50c5c54 u0 popupwindow:2e73e0f2} at 6 of [after window{ 30373fd0 u0 com.android.contacts/com.android.contacts.activities.peopleactivity})
Frameworks/base/services/core/java/com/android/server/wm/windowmanagerservice.java
Line 952 log will be called when the window is added, there is no guiding significance here

"Debugging Issues"
/*
~/workspace/ap/out/target/product/msm8909/system/priv-app/contacts$ adb push contacts.apk system/priv-app/Contacts
2412 kb/s (4819489 bytes in 1.951s)
[Email protected]:~/workspace/ap/out/target/product/msm8909/system/priv-app/contacts$ adb reboot
The contacts icon disappears after the reboot
The icon disappears because of an error. After re-burning with FastBoot, the contacts are normal.
Modify the source file errors and recompile. Push in, reboot, you can see the new hit log.
Lsusb 18d1:d00d


*/

Android5.1-Contacts Creation Group

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.