0

I was just wondering how are multiple contact numbers stored under same tag in android.

For example, I could store 9876543210 and 9812345670 under the same tag TYPE_HOME or TYPE_MOBILE. But while storing a number programmatically, I could only insert 1 contact on 1 tag and it gets replaced if a second entry is made to it.

Also, How to store multiple numbers under same tag programmatically?

Pankaj Singhal
  • 15,283
  • 9
  • 47
  • 86
  • perhaps here is the answer to your question: http://stackoverflow.com/questions/12319445/update-only-phones-contact-number-when-multiple-number-under-one-contact – Irfan Jul 26 '13 at 12:14
  • why you do not concat a special character after every number. – Sandeep Jul 26 '13 at 12:20
  • and then how would i be storing it on my phone. Of course,that would not be what you want to see on your contact list. – Pankaj Singhal Jul 26 '13 at 12:25

1 Answers1

0

Tag is supposed to handle a single value,You could subclass the object and add an array to property and save the values as you need in there

Lithu T.V
  • 19,955
  • 12
  • 56
  • 101
  • 1
    I did not exactly get you. what do you mean by "subclass the object and add an array to property"?? As array's can't be passed in it and only an object can be. – Pankaj Singhal Jul 26 '13 at 12:08