마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

데이터 네트워크 끄는 소스가 있나요?

+1 추천
데이터 네트워크를 켜는 소스는 구해서 사용 하는데

 

끄는 소스는 못 찾겠더라구요...

 

켤때는 startUsingNetworkFeature(ConnectivityManager.TYPE_MOBILE, "enadbleHIPRI") 함수를 통해 켜는데

 

 끌때는 어떻게 해야 하나요??

 

그리고 "enableHIPRI"가 뜻하는바가 뭔지.. 궁금합니다.
익명사용자 님이 2014년 7월 15일 질문

1개의 답변

+1 추천

안녕하세요.

다음 API로 NF를 중지할 수 있습니다.

public int stopUsingNetworkFeature (int networkType, String feature)

 
 

HIPRI는 High Prioirity의 줄임말로 보통 네트워크 제공자의 특정 APN (좀더 빠른)을 사용할 수 있도록 합니다.

public static final int TYPE_MOBILE_HIPRI

Added in API level 8

A High Priority Mobile data connection. This network type uses the same network interface as TYPE_MOBILE but the routing setup is different. Only requesting processes will have access to the Mobile DNS servers and only IP's explicitly requested via requestRouteToHost(int, int) will route over this interface if no default route exists.

Constant Value: 5 (0x00000005)

 

fanoyong (1,440 포인트) 님이 2014년 7월 16일 답변
ㄴ 덕분에 살았어요 ㅠㅠ 감사합니다!!
...