Wednesday 15 May 2013

Android app, formatting numbers from contact list -



Android app, formatting numbers from contact list -

i retrieving contacts device on android app installed. numbers getting in format stored on phone. say, few numbers '+1-716-xxx-xxxx' ,'(512)xxx-xxxx', '1203xxxxxxx',etc.

i want utilize these numbers title of table in database. but, if same number saved in 2 different formats, creating 2 different tables. example, '(716)abc-defg' , '+1-716-abc-defg' same number, getting different tables two

how should figure out if table number exist or not? or there way them in 1 format?

hello fetching info contactscontract.commondatakinds.phone.number row. row want contactscontract.commondatakinds.phone.normalized_number numbers conveniently formatted you. i'm in phone update reply proper references in bit.

edit: there go! http://developer.android.com/reference/android/provider/contactscontract.commondatakinds.phone.html#normalized_number

android

No comments:

Post a Comment