我得到了它!
                    final CellIdentityLte identityLte = ((CellInfoLte) info).getCellIdentity();
                    int longCid = identityLte.getCi();
                    String cellidHex = DecToHex(longCid);
                    String eNBHex = cellidHex.substring(0, cellidHex.length()-2);
                    int eNB = HexToDec(eNBHex);
                    return checkValidString(Integer.toString(eNB));
通过使用这种方法...
// Decimal -> hexadecimal
public String DecToHex(int dec){
    return String.format("%x", dec);
}
// hex -> decimal
public int HexToDec(String hex){
    return Integer.parseInt(hex, 16);
}
| 归档时间: | 
 | 
| 查看次数: | 3006 次 | 
| 最近记录: |