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 に答える