小编Ani*_*mar的帖子

如何在android中获取第二个sim的信息

通过使用以下方法,我获得了sim one的信息

 TelephonyManager telephonyManager = (TelephonyManager) this.getSystemService(Context.TELEPHONY_SERVICE);
            // Get the SIM country ISO code
            String simCountry = telephonyManager.getSimCountryIso();
            Log.e("Show:", simCountry);
            // Get the operator code of the active SIM (MCC + MNC)
            String simOperatorCode = telephonyManager.getSimOperator();
            Log.e("Show:", simOperatorCode);
            // Get the name of the SIM operator
            String simOperatorName = telephonyManager.getSimOperatorName();
            Log.e("Show:", simOperatorName);
            // Get the SIM’s serial number
            String simSerial = telephonyManager.getSimSerialNumber();
            Log.e("Show:", simSerial);
            // Get the phone number
            String mPhoneNumber = telephonyManager.getLine1Number();
            Log.e("Show:", mPhoneNumber);
Run Code Online (Sandbox Code Playgroud)

如何获取双卡手机的第二个SIM卡的信息?

            // Get the phone …
Run Code Online (Sandbox Code Playgroud)

android dual-sim android-permissions

5
推荐指数
1
解决办法
832
查看次数

标签 统计

android ×1

android-permissions ×1

dual-sim ×1