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.
Please, go through following SO link::
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.