Android Question Contact data structure.

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
for my next app I need to tag contacts with some flag, to allow a special beaviour for a limited numer of contacts. I have seen generic data field (DATA1-DATA15) inside of it. Does anybody know if I can use one of that fields, normally not assigned for some use or have I to build my own DB?

Thank you!
Mauro
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The contacts database is much more complicated. It is not made of 15 fields.

You can see the code that accesses the contacts: [class] ContactsUtils - Provides read / write access to the stored contacts

Maybe you can use the notes field to store additional data.
If you only need the data for your application then it will be probably simpler to store it in your own database. You can use the contact ids as keys.
 
Upvote 0
Top