Hi everyone,

I'm trying to retrieve the ARFCN (Frequency Channel Number) that a device 
in a 5G network is currently using. The thing is that the 5G all the 
operators in my city offer is of the NSA type, thus meaning that the phone 
will always be registered to a 4G LTE network as a primary cell and will 
use a 5G NR cell as a secondary one.

To get the mentioned ARFCN one will normally use the 
PhoneStateListener.onCellInfoChanged(List<CellInfo> 
cellInfo) 
<https://developer.android.com/reference/android/telephony/PhoneStateListener#onCellInfoChanged(java.util.List%3Candroid.telephony.CellInfo%3E)>
 
method and check from the list which CellInfo 
<https://developer.android.com/reference/android/telephony/CellInfo> is 
that one the device is registered on, get the CellIdentity 
<https://developer.android.com/reference/android/telephony/CellIdentityNr> 
attached to it and then get the ARFCN. *The problem is that, aside from 
being only registerd to a CellInfoLTE (4G) there's no trace of any 
CellInfoNR (5G), registered or not*. Weird thing is I can get the 5G signal 
intensity through PhoneStateListener.onSignalStrengthsChanged(SignalStrength 
signalStrength) 
<https://developer.android.com/reference/android/telephony/PhoneStateListener#onSignalStrengthsChanged(android.telephony.SignalStrength)>
.

Any lead, piece of advice or hope is welcomed :) Thanks for reading.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/2fc28e52-7831-4fb6-9e6b-69fafa07e76an%40googlegroups.com.

Reply via email to