It's fairly complicated. The easiest way is to use the CellularHelper library. The getNetworkInfo() function returns the band. There's nothing magical inside the library and you can just implement the same thing in your own code, but keep in mind that the method varies depending on the cellular modem.