Caused by: java.lang.RuntimeException:
Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid!
com.example.earthquake.FragmentPreferences has not checked if fragment
com.example.earthquake.UserPreferenceFragment is valid.
解决方法:
http://stackoverflow.com/questions/19973034/isvalidfragment-android-api-19
http://stackoverflow.com/questions/20954072/when-androids-isvalidfragment-from-preferenceactivity-gets-called
Subclasses of PreferenceActivity must override isValidFragment(String) to verify that the Fragment class is valid!
com.example.earthquake.FragmentPreferences has not checked if fragment
com.example.earthquake.UserPreferenceFragment is valid.
解决方法:
http://stackoverflow.com/questions/19973034/isvalidfragment-android-api-19
http://stackoverflow.com/questions/20954072/when-androids-isvalidfragment-from-preferenceactivity-gets-called