Android에서 인터넷 연결이 사용 설정되어 있는지 확인하는 방법은 무엇입니까? 위치 서비스가 비활성화 된 경우처럼 우리는 기술이처럼인터넷 연결 (Wi-Fi/모바일 데이터)이 활성화되었는지 확인하는 방법은 무엇입니까?
Location myLocation = locationmanager.getLastKnownLocation(provider);
if(myLocation == null){
Show the AlertDialog.
}else{
do this.
}
를 사용하는 방법을 인터넷 연결이 활성화/비활성화하면 내가 확인 할. 와이파이의 경우
이 링크는 U에게 http://stackoverflow.com/questions/4238921/android-detect-whether-there-is-an-internet-connection-available 도움을 줄 수있을 수 있습니다 –