Obtaining Android Contacts Sorting Preference

2020-05-08 07:41发布

Inside "Contacts" -> "Settings" in android, we have "Sort list by" and "view contact name as" options. Is there any way of obtaining these preferences inside another app? Meaning my app has my own version of a contact list. I need these in order to sort it accordingly.

1条回答
做自己的国王
2楼-- · 2020-05-08 08:20
    int sort_order = 
Settings.System.getInt(getContentResolver(),ContactsContract.Preferences.SORT_ORDER);
    inr display_order =
Settings.System.getInt(getContentResolver(),ContactsContract.Preferences.DISPLAY_ORDER);
查看更多
登录 后发表回答