Get default sorting order of Contacts in Android Device

112 views
Skip to first unread message

rastogi....@gmail.com

unread,
Oct 25, 2013, 2:42:34 AM10/25/13
to mobileor...@googlegroups.com
How can my application know Default sorting order used for sorting native "Android Device Contacts"?

Inside "Contacts" -> "Settings" in android, we have "List by" and "Display Contacts by" options. How can I get these prefrences in my application.

For example: suppose device contacts are sorted by "First Name", then application should get some constant(or something similar). On the other hand, if contacts are sorted by "Last Name" then application should get constants(or info) regarding the same.

I searched SO and I got this link, but the problem is that the solution was deprecated in API level 5.

Hope anybody can help me.

Thanks in advance.

manju....@outware.com.au

unread,
Sep 10, 2015, 3:00:47 AM9/10/15
to mobileorg-android
Can anyone shed some light to the above question.

rastogi....@gmail.com

unread,
Sep 14, 2015, 9:55:16 AM9/14/15
to mobileorg-android
On Thursday, September 10, 2015 at 12:30:47 PM UTC+5:30, (unknown) wrote:
> Can anyone shed some light to the above question.

Please, go through following SO link::

http://stackoverflow.com/questions/19569896/get-sorting-order-preference-selected-user-in-contactssettings-in-android-devic/19805478#19805478

manju....@outware.com.au

unread,
Sep 14, 2015, 7:44:14 PM9/14/15
to mobileorg-android

I did try the solution before but the API's used in the solution are currently deprecated and hence throws exception at runtime. Looking for a solution that can be used in API 16 and above.

ravee...@gmail.com

unread,
Aug 23, 2016, 1:15:15 AM8/23/16
to mobileorg-android
Please help. Facing the same issue for 6.0 devices.
Reply all
Reply to author
Forward
0 new messages