Sneha Bansal
Sneha Bansal

Reputation: 941

add new column in default contacts content provider of android

I have requirement to add new column in default contacts table provided by android so can I do that .I just want to add a new value in that column if it is added from my application.So please tell me if it is possible .

Edit:My aim is to add data in defaults contacts table programatically so that it will also be visible when user opens default phonebook.enter image description here

Upvotes: 4

Views: 609

Answers (1)

r2DoesInc
r2DoesInc

Reputation: 3771

No. This is not possible. Though it technically is, the end result will not be desirable:

  1. It would need root obviously. You can't modify the data of other apps without root.

  2. You would need to find where the actual SQLite database file is located, open that, modify it.

  3. Would the contacts app even work after this modification? Doubtful.

  4. Would this modification persist? Doubtful.

Why not make the association some other way? Store whatever value you have with an identifuer from the contacts database.

Upvotes: 1

Related Questions