"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