how to get selected person email id programmatically in android contacts
that should support all version.i tried with people class but there primary email method is deprecated
Thanks in advance
Aswan
For API versions prior 5 you have to use the Contacts
class and for 5 onwards you have to use the ContactsContract
class.
You have to query the API version and upon that decide which class to use.