Type of phone Name

Put your problem here if it does not fit any of the other categories.

Type of phone Name

Postby Davide » Tue Nov 17, 2009 10:00 am

Hi everybody, I post this because I can retrieve the type of phone's Id from the content provider, but I can't retrieve the associated name (maybe because the names must be included programmatically, anyway for names I mean home, work, cell, fax and so on).
The question is, do you know what are the matches? Example, type's Id = 1 corrispond to type's name "Home" (I don't know if it's exact).
Obviously that knows where and how I can find that data in the content provider (SDK 2.0) will be better. :)

Thanks and bye!
Davide
Experienced Developer
Experienced Developer
 
Posts: 69
Joined: Mon Oct 19, 2009 12:05 pm
Location: Italy

Top

Postby Davide » Tue Nov 17, 2009 12:43 pm

Oh my... I really need to sleep... I had the answer under my nose all this time and I didn't see it...
The answer is: I have to add the names programmatically (=> res/ => string array), and the link between name and id is here:

http://developer.android.com/reference/ ... Phone.html

:(

Hope it will be useful to someone else. :)
Davide
Experienced Developer
Experienced Developer
 
Posts: 69
Joined: Mon Oct 19, 2009 12:05 pm
Location: Italy

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 25 guests