1

I want to know locality (like state, operator,etc) from the mobile number. You can find the data about mobile number allocation here. The data is huge. I am trying it solve this similar to this solution by entering the whole data to String file (but that is difficuilt to compile in to string file and parsing is turning out to be bit confusing).

Is there any other alternative way such as online repository to this data. There are various apps in play store and online with similiar feature available (I am doing this task for entrily a different role).

Can some one please point me towards right direction or a small code to parse.

Thank You.

Community
  • 1
  • 1
Sagar Chilukuri
  • 1,430
  • 2
  • 17
  • 29
  • Why don't you try making a simple database for it?. Make a table for S.NO `Telecom, circle, Category` and `Mobile Operators` and `Circles`. – ישו אוהב אותך Jul 17 '16 at 03:46
  • Is database more efficient then working with string.xml way? – Sagar Chilukuri Jul 17 '16 at 04:41
  • It depends. If your data never change, use simple text file like `string.xml`. But if your data have a high probability to change, like adding some data for the new mobile numbers, using database is better. Parsing a file of strings to find a data required a lot of works. Grouping data from a file is another works. So you end up using your times for something that already solved by database. Better to not reinvent the wheel. imho, database is effective though sometimes not efficient. – ישו אוהב אותך Jul 17 '16 at 14:50

1 Answers1

0

(Answering my own question).

I did search internet, found a website which could provide the probably most updated Mobile Number Circle data. But I need it for bulk use (like for all contacts) and it would not have worked.

I found another php script in github. (A great thanks to rahulchordiya). As I needed it in for android, string.xml file, I did little modification and can be downloaded from here. Hope some one finds it useful.

Sagar Chilukuri
  • 1,430
  • 2
  • 17
  • 29