Associate-Android-Developer 문제 46

활동에서 재정의된 onCreateOptionsMenu 메서드는 부울 값을 반환합니다. 이 값은 무엇을 의미합니까?

Associate-Android-Developer 문제 47

예를 들어, 우리의 Preferences.xml 파일은 addPreferencesFromResource(R.xml.preferences)에 의해 추가되었습니다. 우리의 Preferences.xml 파일에는 다음과 같은 항목이 포함되어 있습니다.
<SwitchPreference android:id="@+id/notification" android:key="@string/pref_notification_key" android:title="@string/pref_notification_title" android:summary="@string/pref_notification_summary" android:defaultValue="@bool /pref_notification_default_value" app:iconSpaceReserved="false"/> Fragment에서 다음과 같은 방식으로 현재 알림 기본 설정 값을 동적으로 가져올 수 있습니다.