hi, what does ContactsContract.CommonDataKinds.StructuredPostal.TYPE mean. I want to know what does "TYPE" mean in "ContactsContract.CommonDataKinds.StructuredPostal.TYPE ". I will be waiting for any kind reply?
A:
The type of address it is (home, work etc):
Allowed values are:
TYPE_CUSTOM. Put the actual type in LABEL.
TYPE_HOME
TYPE_WORK
TYPE_OTHER
See here.
BeRecursive
2010-09-03 08:53:38
Thank you ver myuch
Android_programmer_camera
2010-09-03 10:20:16
No problem :) Make sure to mark the question as answered!
BeRecursive
2010-09-03 10:29:17
Also tell me what doed Note in ContactsContract.CommonDataKinds.Note mean. I saw in developer guide,it was given note about contact.what does note mean ?Thanks in Advance.
Android_programmer_camera
2010-09-03 10:32:33
If the user wanted to add any extra information about that contact - such as perhaps to clarify who exactly they were - it would be in a that note
BeRecursive
2010-09-03 11:03:16
Thank you very much
Android_programmer_camera
2010-09-03 11:50:24
What is the data type of "ContactsContract.Data.CONTACT_ID ? is it String ? if it is String can we declare as below: public final String contactID=ContactsContract.Data.CONTACT_ID ?Thank in Advance.
Android_programmer_camera
2010-09-03 13:04:57
CONTACT_ID is a long. It is the id of the row in the Contacts table that this data belongs to. You would need to use Long.toString(CONTACT_ID)
BeRecursive
2010-09-03 13:14:27
Basically I think ContactsContract.Data.CONTACT_ID is the column name in contacts table.I declared it as public static long iddd = ContactsContract.Data.CONTACT_ID; It is showing error as type mismatch. I think it is String.And also give me link where I can find datatypes of all these types of constants
Android_programmer_camera
2010-09-03 13:42:20
The compiler will tell you what the type mismatch is. There are two CONTACT_IDs depending on the data join. You are probably using the string version, but it is still the unique ID of the row. All these constants are in the link I gave you and can be accessed by searching in the developer reference: http://developer.android.com/reference/android/provider/ContactsContract.Data.html
BeRecursive
2010-09-03 15:05:53