2013-01-10 69 views
0

我開發了一個應用程序,顯示任何電話號碼的位置和服務提供商。如何獲取有關電話號碼和位置的數據

9718202569理念數量德里電信圈

我這樣做,適用於所有印度的電話號碼。

現在我想爲它做美國,英國和其他國家的電話號碼。

但我沒有得到有關互聯網的數據。

+0

只是出於好奇,你有沒有使用國家代碼的任何地方在你的代碼,以實現印度的數字目標是什麼? –

回答

4

看到這個:

telephonyManager = (TelephonyManager)context.getSystemService(Context.TELEPHONY_SERVICE); 
    locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); 
    lineOne = telephonyManager.getLine1Number(); 
    Log.d(TAG, "line 1 " + lineOne); 

    deviceId = telephonyManager.getDeviceId(); 
    Log.d(TAG, "getDeviceId() " + deviceId); 


    networkOperator = telephonyManager.getNetworkOperatorName(); 
    Log.d(TAG, "getNetworkOperatorName() " + networkOperator); 

    networkType = telephonyManager.getNetworkType(); 
    Log.d(TAG, "getNetworkType() " + networkType); 

    phoneType = telephonyManager.getPhoneType(); 
    Log.d(TAG, "getPhoneType() " + phoneType); 

    simSerialNumber = telephonyManager.getSimSerialNumber(); 
    Log.d(TAG, "getSimSerialNumber() " + simSerialNumber); 

    subscriberId = telephonyManager.getSubscriberId(); 
    Log.d(TAG, "getSubscriberId() " + subscriberId); 


    // Register the listener with the Location Manager to receive location updates 
    locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, timeBetweenFixes, distanceBetweenFixes, locationListener); 
    locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, timeBetweenFixes, distanceBetweenFixes, locationListener); 
    IntentFilter filter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); 
    context.registerReceiver(batteryReceiver, filter);  
+0

這隻給出關於手機中SIM卡的信息。我想要所有電話號碼的這個信息 – kamal

+0

您問關於聯繫? – Payal