0

我开发了一个应用程序,可以显示任何电话号码的位置和服务提供商。

点赞9718202569 数德里电信圈

我为所有印度电话号码做到了这一点。

现在我想为美国、英国和其他国家的电话号码做这件事。

但我没有在互联网上获得与此相关的数据。

4

1 回答 1

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);    
于 2013-01-10T10:56:55.723 回答