안드로이드에서 비행기 모드를 감지하려면 어떻게 해야 하나요? 앱에 Wi-Fi가 활성화되어 있는지 여부를 감지하는 코드가 있습니다.이 코드는 Runtime을 트리거합니다.비행기 모드가 활성화된 경우 예외입니다.어쨌든 이 모드에서는 에러 메시지를 따로 표시하고 싶습니다.Android 장치가 비행기 모드인지 여부를 확실하게 감지하려면 어떻게 해야 합니까?/** * Gets the state of Airplane Mode. * * @param context * @return true if enabled. */ private static boolean isAirplaneModeOn(Context context) { return Settings.System.getInt(context.getContentResolve..