취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

제목:

Google common api

(게시글 작성 시간: 11-27-2019 03:18 AM)
202 보기
android_dev
Beginner Level 2
옵션
리뷰
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.

0 좋아요
0 댓글