java - Refactoring Settings Activity -
i´m having problems refactoring settingsactivity.java. first, extended preferenceactivity didn't take addpreferencesfromresource(r.xml.pref_general) because marks decaprecated findpreference(getstring(r.string.pref_location_key). i've changed preferencefragment , took both methods above cannot resolve getmenuinflater().inflate(r.menu.menu_settings, menu); furthermore it's showing: "cannot resolve symbol pref_units_keys" in bindpreferencesummarytovalue(findpreference(getstring(r.string.pref_units_key))); finally in forecastfragment.java cannot method right: private string formathighlows(double high, double low){ // data fetched in celsius default. // if user prefers see in fahrenheit, convert values here. // rather fetching in fahrenheit user can // change option without having re-fetch data once // start storing values in database sharedpreferences sharedprefs = preferencemanager.ge