android_dev
Beginner Level 2
옵션
- 신규로 표시
- 북마크
- 구독
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
11-27-2019 03:18 AM ·
리뷰
I can't use the android 10 API on the galaxy 10s 5G and the latest beta version.
https://developer.android.com/reference/android/telephony/CellInfoNr
I am using the api in our application like below, but I never get the Cellinfonr even though the device connected with 5g network.
List allCellInfo = telephonyManager.getAllCellInfo(); boolean hasSecondaryNrCell = false;
for (CellInfo cellInfo : allCellInfo) {
if (cellInfo instanceof CellInfoNr && cellInfo.getCellConnectionStatus() == CellInfo.CONNECTION_SECONDARY_SERVING)
{
hasSecondaryNrCell = true;
break;
} }
These all of implementations are based on Google android 10 public api and are recommended by Google. Please add the feature according to the common specification of the android 10.
- 태그:
- application
0 댓글