1

以下のコードで最初の SIM セル タワー ID を取得できます。しかし、私は2番目のsim2セルIDを取得したい.

    TelephonyManager telephonyManager = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
    GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation();
  int   nowcid  = cellLocation.getCid();
  int nowlac = cellLocation.getLac();

これについては多くの質問があります。しかし、Android 6.0 samsung j7 2016 ですべてのコードをテストしましたが、sim2 セル ID を取得できませんでした。他の質問ではこれは不可能だと言う人もいますが、Network Cell Info Lite アプリhttps://play.google.com/store/apps/details?id=com.wilysis.cellinfolite&hl=en は、テストしたすべてのデバイスで sim2 からセル ID を取得します.

4

1 に答える 1