02985212649座机查询归属地及单位归属?

电话号码:
广东 广州所辖地区:番禺、从化、增城、花都、
(输入的格式如:010- 或 )
关于固定电话号码查询
  为您快速得查询固定电话号码码的归属地信息。
随机推荐查询工具
CopyRight &
All Rights Reserved手机归属地——快速查询手机和座机号码归属地 on the App Store
Opening the iTunes Store.If iTunes doesn't open, click the iTunes application icon in your Dock or on your Windows desktop.Progress Indicator
Opening the iBooks Store.If iBooks doesn't open, click the iBooks app in your Dock.Progress Indicator
iTunes is the world's easiest way to organize and add to your digital media collection.
We are unable to find iTunes on your computer. To download the free app 手机归属地——快速查询手机和座机号码归属地 by 素素应用, get iTunes now.
Already have iTunes? Click I Have iTunes to open it now.
手机归属地——快速查询手机和座机号码归属地
By 素素应用
Open iTunes to buy and download apps.
Description
这是一款查询中国境内手机号码所在地的应用程序,离线数据库,无须联网。- 百度和谷歌查询号码- 可方便回拨、发送短信到查询号码- 结合维基百科和百度百科,迅速了解所在地概况购买前友情提示:本应用与所有在 App Store 上销售的同类应用一样,不能在接拨电话时显示归属地。请不要因为这种官方的限制而给本应用差评,万分感谢!
What's New in Version 6.1.1
- 离线数据库更新本应用从来不弹框,也不跪求好评,如果您觉得还不错的话,不妨给我们写一个好评,鼓励小众应用的发展。谢谢。
Screenshots
Customers Also Bought
This app is designed for both iPhone and iPadFreeCategory: Version: 6.1.1Size: 14.6 MBLanguage: EnglishSeller: yin jingjingUnrestricted Web AccessFrequent/Intense Mature/Suggestive ThemesCompatibility: Requires iOS 6.0 or later. Compatible with iPhone, iPad, and iPod touch.
Customer Ratings
We have not received enough ratings to display an average for the current version of this application.
All Versions:
&&&&&25 Ratings
More by 素素应用
Discover and share new apps.
Follow us on .
Discover and share new music, movies, TV, books, and more.
and discover new iTunes Radio Stations and the music we love.Android-手机归属地和座机归属地查询
在开发Android项目 的时候,有个查询手机和座机归属地的需求,然而Android本身并没有发现提供查询归属地的数据库,所以就需要我们自己来想办法查询来满足项目的需求。
我最初的想法,就是把这些归属地数据存到一个普通的文件,文件内容可以用JSON格式的数据格式,然后每次启动App的时候把文件的JSON内容转换成Java的对象,Google提供了一款工具,可以直接把JSON的字符串转换成我们定义好的Class类,比Java提供的JsonObject好很多,然而我考虑到数据库的大小和查询效率,还是决定使用数据库查询。
Goole的转换JSON的工具是Gson,链接:
使用方法:http://blog.csdn.net/qxs/article/details/
首先,需要下载归属地的:
把数据库DB文件存放到assets或者raw文件中
在启动启动后,需要把DB文件拷贝到Sd卡的中自己定义的目录中,当然你可能会疑问,为什么别人的都是拷贝到data文件下的项目文件中的DataBases文件中,而我却没有这么做?原因是:查看该目录需要root权限,当然这不是主要原因,而是在我测试的时候我把整个DB文件复制到data文件下的项目文件中时,并没有把整个DB文件复制过去,而是一部分,我觉得应该是文件太大的原因,所以考虑复制到SD卡中。
复制代码如下:
public static final String DB_NAME = callHomeDB.
private int BUFFER_SIZE = 1024;
private String getDirPath() {
String path = fileHandler.sdcardFolder.getAbsolutePath();
private void copyContactLocation() {
String path = getDirPath() + / + DB_NAME;
File file = new File(path);
if (!file.exists()) {
InputStream is = MainActivity.instance.getResources()
.getAssets().open(DB_NAME);
FileOutputStream fos = new FileOutputStream(path);
byte[] buffer = new byte[BUFFER_SIZE];
int count = 0;
while ((count = is.read(buffer)) & 0) {
fos.write(buffer, 0, count);
fos.close();
is.close();
} catch (FileNotFoundException e) {
log.e(File not found);
e.printStackTrace();
} catch (IOException e) {
log.e(IO exception);
e.printStackTrace();
下面说一下查询:
有一种方法可以直接把DB文件转换成一个Database数据库对象
SQLiteDatabase db = SQLiteDatabase.openOrCreateDatabase(path, null);
然而,可以直接操作SQLiteDatabase的实例来查询数据库,如果你的查询次数非常少的情况,可以使用这种,看不出查询效率,查询次数大的话建议不要用这种方式,查询效率太低,严重影响真个项目框架的执行效率,很多东西都会变得不灵敏。
为了提高查询效率,我使用的android提供的查询数据库的SQLiteOpenHelper类,查询效率大大提高,相信android是做了很多优化的。
首先需要重写DataBase的上下文,代码如下:
package com.open.lxxms.
import java.io.F
import com.open.lib.MyL
import android.content.C
import android.content.ContextW
import android.database.DatabaseErrorH
import android.database.sqlite.SQLiteD
import android.database.sqlite.SQLiteDatabase.CursorF
* CustomDatabaseContext
下午7:51:05
* @author 乔晓松
public class CustomDatabaseContext extends ContextWrapper {
public String tag = CustomDatabaseC
public MyLog log = new MyLog(tag, true);
private String mDirP
public CustomDatabaseContext(Context base, String dirPath) {
super(base);
this.mDirPath = dirP
log.e(CustomPathDatabaseContext);
public File getDatabasePath(String name) {
File result = new File(mDirPath + File.separator + name);
if (!result.getParentFile().exists()) {
result.getParentFile().mkdirs();
public SQLiteDatabase openOrCreateDatabase(String name, int mode,
CursorFactory factory) {
log.e(openOrCreateDatabase1);
return SQLiteDatabase.openOrCreateDatabase(getDatabasePath(name),
public SQLiteDatabase openOrCreateDatabase(String name, int mode,
CursorFactory factory, DatabaseErrorHandler errorHandler) {
log.e(openOrCreateDatabase2);
return SQLiteDatabase.openOrCreateDatabase(getDatabasePath(name)
.getAbsolutePath(), factory, errorHandler);
下面是我封装的DB的工具类:
package com.open.lxxms.
import java.io.F
import java.io.FileNotFoundE
import java.io.FileOutputS
import java.io.IOE
import java.io.InputS
import android.content.C
import android.database.C
import android.database.sqlite.SQLiteD
import android.database.sqlite.SQLiteDatabase.CursorF
import android.database.sqlite.SQLiteOpenH
import android.os.E
import com.open.lib.MyL
import com.open.lxxms.MainA
* DBOptions
下午8:57:47
* @author 乔晓松
public class DBHandler extends SQLiteOpenHelper {
public String tag = DBO
public MyLog log = new MyLog(tag, true);
public static final String DB_NAME = callHomeDB.
private int BUFFER_SIZE = 1024;
public static final String PACKAGE_NAME = com.open.
public static final String DB_PATH = /data
+ Environment.getDataDirectory().getAbsolutePath() + /
+ PACKAGE_NAME;
public static DBHandler getInstance(Context context) {
DBHandler dbOptions = new DBHandler(context, null, null, 1);
return dbO
public DBHandler(Context context, String name, CursorFactory factory,
int version) {
// super(context, name, factory, version);
super(new CustomDatabaseContext(context, getDirPath()), DB_NAME,
factory, version);
String path = getDirPath() + / + DB_NAME;
File file = new File(path);
if (!file.exists()) {
InputStream is = MainActivity.instance.getResources()
.getAssets().open(callHomeDB.db);
FileOutputStream fos = new FileOutputStream(path);
byte[] buffer = new byte[BUFFER_SIZE];
int count = 0;
while ((count = is.read(buffer)) & 0) {
fos.write(buffer, 0, count);
fos.close();
is.close();
} catch (FileNotFoundException e) {
log.e(File not found);
e.printStackTrace();
} catch (IOException e) {
log.e(IO exception);
e.printStackTrace();
log.e(DBOptions);
public static FileHandler fileHandler = FileHandler.getInstance();
private static String getDirPath() {
String path = fileHandler.sdcardFolder.getAbsolutePath();
public void onCreate(SQLiteDatabase db) {
// TODO Auto-generated method stub
log.e(onCreate);
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
// TODO Auto-generated method stub
log.e(onUpgrade);
public String getResult(SQLiteDatabase database, String number) {
// log.e(number);
String result = 未知号码;
number = number.replaceAll( , );
if (number.length() & 7) {
String firstNum = number.substring(0, 1);
if (number.length() &= 10) {
if (0.equals(firstNum)) {
String s1 = number.substring(1);
String s2 = s1;
String second = s1.substring(0, 1);
if (second.equals(1) || second.equals(2)) {
s2 = s1.substring(0, 2);
s2 = s1.substring(0, 3);
String sql = select location from tel_location where _id = ? ;
String[] param = new String[] { s2 };
if (database != null && database.isOpen()) {
Cursor cursor = database.rawQuery(sql, param);
if (cursor.moveToNext()) {
result = cursor.getString(0);
cursor.close();
if (number.indexOf(+86) == 0) {
number = number.substring(3);
if (number.indexOf(86) == 0) {
number = number.substring(2);
String s1 = number.substring(0, 7);
String sql = select location from mob_location where _id = ? ;
String[] param = new String[] { s1 };
if (database != null && database.isOpen()) {
Cursor cursor = database.rawQuery(sql, param);
if (cursor.moveToNext()) {
result = cursor.getString(0);
cursor.close();
result = 本地号码;
if (number.length() & 4) {
result = 未知号码;
result = 本地号码;
// } catch (Exception e) {
// e.printStackTrace();
使用方法:
DBHandler dbOptions = DBHandler.getInstance(context);
SQLiteDatabase database = dbOptions.getReadableDatabase();
String result = dbOptions.getResult(database, number);
归属地的数据库:http://download.csdn.net/detail/qxs67219
如有转载,请著名出自http://blog.csdn.net/qxs座机是哪里归属地?_百度知道
座机是哪里归属地?
我有更好的答案
其他类似问题
为您推荐:
归属地的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁针对电话号码()的举报或留言:(以下内容为网友留言,不代表本站观点,请谨慎参考!)
近期查询关注()的网友...
(试试看:查询自己的号码,看谁在关注你)
江西省吉安市(220.177.*.*)网友
北京市(123.120.*.*)网友
湖南省(223.145.*.*)网友
广东省惠州市(183.25.*.*)网友
江西省吉安市(220.177.*.*)网友
湖北省武汉市(59.174.*.*)网友
广东省广州市(117.136.*.*)网友
北京市(202.108.*.*)网友
陕西省(36.44.*.*)网友
美国(68.180.*.*)网友
*如果您发现该号码的归属地不准确或不完整,请点击[]功能进行修正。
号码安全中心举报栏:
广东省清远市网友
骚扰电话:封这个号码
湖南省湘潭市网友
留言:此号码有问题
江苏省泰州市网友
骚扰电话:这个号码打了就挂掉,打过去打不通,肯定不是什么好人。
北京市网友
骚扰电话:号码不存在
浙江省杭州市网友
诈骗电话:说有个快递三次未投送到,通知什么什么}

我要回帖

更多关于 座机号码归属地 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信