Questions tagged [libphonenumber]

Google's common Java, C++ and Javascript library for parsing, formatting, storing and validating international phone numbers. The Java version is optimized for running on smartphones, and is used by the Android framework since 4.0 (Ice Cream Sandwich).

libphonenumber is a library for handling phone numbers. It can parse and format phone numbers as well as provide geographical information about phone numbers.

libphonenumber is written by Google engineers and is used in Android and other Google projects.

230 questions
0
votes
2 answers

Compiling google libphonenumber for Javascript

I've followed the directions here: https://github.com/googlei18n/libphonenumber/tree/master/javascript However, I run into trouble with this line: Build Closure's compiler.jar: ant -f ~/src/closure-compiler/build.xml There is no build.xml in the…
user5671367
0
votes
1 answer

How to get number in international format from call history

I have question about phone number formats. If I try to read call log on android device I get numbers in both formats. International and short versions. I always thought that this behaviour is somehow affected by format in which the contact is…
tomas.tunkl
  • 141
  • 1
  • 2
  • 10
0
votes
0 answers

Get exact phone number from a TON NPI prefix number in android?

I have several phone numbers that have TOA = TON + NPI as the prefix.Some of these numbers are like 1217006529482 148015206427 1415615032525 The TOA in these cases are 12, 11 and 14 respectively. How do I resolve the exact number by passing these…
nikoo28
  • 2,961
  • 1
  • 29
  • 39
0
votes
1 answer

DQL using LibPhoneNumber

I have a LibPhoneNumber object $phone I pass to a repository method. In my repository method I have: return $this->getEntityManager() ->createQuery( 'SELECT p, m FROM AppBundle:Phone p JOIN p.member m WHERE p.phoneNumber =…
snoop168
  • 394
  • 3
  • 16
0
votes
1 answer

Unify phone numbers before store in database

I want to import all the contacts number from user's phone address book and store them in the database but since I want to do some processing on them later, all of the phone numbers should have a unify format. I have done some research on the…
‌‌R‌‌‌.
  • 2,818
  • 26
  • 37
0
votes
2 answers

How to get UTC offset from a phone number in C#

I have a mobile application which authenticates the user via a phone number (similar to Whatsapp's sign in process). After the user has logged in, he can create a TODO notes. When he creates a note he also fills in a date. In the DB, I want to…
Yaron Levi
  • 12,535
  • 16
  • 69
  • 118
0
votes
1 answer

WP 8.1 : Get county name by Region Two letter code or country numeric code

(I appoligize by advance for my bad English :) ) I'm actually working on a Windows Phone store application (wp8.1), and I need to display a selector with country name (and few other informations). I am using libphonenumber library to get country…
0
votes
3 answers

libphonenumber javascript to PHP conversion

I'm using this PHP port of libphonenumber because the other one requires mbstring which my version of PHP doesn't have installed. https://github.com/davideme/libphonenumber-for-PHP Now, it doesn't matter what I pass in the $country value below. I…
MB34
  • 4,210
  • 12
  • 59
  • 110
0
votes
0 answers

LNK2005 making a C wrapper for C++ libphonenumber

I have a cross platform C project and now I want to introduce the C++ based libphonenumber in my project changing as little as possible. The first attempt is to integrate it in Win32 using Visual Studio 2013 but it needs to work on iOS and Android…
user1816142
  • 1,199
  • 2
  • 9
  • 16
0
votes
1 answer

Can't load assembly libphonenumber Version=5.0.0.0 on Windows Phone 8.0

I add libphonenumber library C# port with nuget to Windows Phone 8.0 project. Write code Run, then app crash on this Line _phoneNumberUtil = PhoneNumberUtil.GetInstance(); With this error Could not load file or assembly…
0
votes
0 answers

Strip phone number withheld code

I'm trying to sanitize phone numbers in Android. Currently I'm using the well known libphonenumber library from Google, but I can't see any way of stripping withheld codes (and maybe others) from a phone number. I'm talking, in general, about those…
USB
  • 53
  • 1
  • 6
0
votes
1 answer

using js in php if condition?

im using libphonenumber js with php to validate a list of numbers from a file: include 'SimpleXLSX.class.php'; $lines = array(); if(isset($_FILES['file'])) { $filename = $_FILES['file']['name']; $filetmpname =…
devilbone
  • 17
  • 6
0
votes
0 answers

libphonenumber js validating numbers from excel file

I have a parsed list/array of phone numbers and i would like to check each one if "isNumberValid()". i tried some stuff but i guess im missing something important because im a begginer.. How would i do this in javascript there is no documentation…
devilbone
  • 17
  • 6
0
votes
1 answer

libphonenumber ios get country code for country

Given a country, how do I get the countryCode? The following method is not working NSNumber* code = [phoneUtil getCountryCodeForRegion:country];
Katedral Pillon
  • 14,534
  • 25
  • 99
  • 199
0
votes
1 answer

How to show hash (#) before extension in libphonenumber?

I would like to generate number with a hash (#) to produce number that can be dialed with extension. How to do this? I have following code: PhoneNumberUtil phoneNumberUtil = PhoneNumberUtil.getInstance(); Iterable matches =…
pixel
  • 24,905
  • 36
  • 149
  • 251