views:

464

answers:

1

I'd like to know whether it's possible to have phone numbers converted into international format when a call is outgoing.

For instance, if a french user (sorry it's the only format i know i won't make a mistake :-) try to call with the national format : 01.47.12.34.56 then a method will convert it into international format like this : +33.1.47.12.34.56

I've looked into the doc of the PhoneNumberUtils but i don't know if there is a method doing what i want.

A: 

Doesn't the number come as a String?

Using Java's string methods you could do this yourself easily if I'm not mistaken?

So get the String, cop the 0 off and add the +33

Donal Rafferty
but how can i retrieve the country code programatically ? (33 is only for france)
Arutha
ah good question, perhaps use a .properties file?
Donal Rafferty
filled with the codes of all countries ??!!
Arutha