TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); int networkType = telephonyManager.getNetworkType(); if (TelephonyManager.NETWORK_TYPE_NR ==networkType) { // 5G }
看介紹:https://stackoverflow.com/questions/55598359/how-to-detect-samsung-s10-5g-is-running-on-5g-networkspa
返回的仍是13(LTE)code
就是有些廠商沒有兼容?blog