English subtitles

← Use SharedPreferences - Developing Android Apps

Get Embed Code
10 Languages

Showing Revision 15 created 05/25/2016 by Udacity Robot.

  1. Once the user's location preference
    has been stored,
  2. when do we make use of it?
    We need the preferred location
  3. when we query the weather service.
    Luckily, in lesson two,
  4. we modified fetch weather task
    to accept a location parameter.
  5. We hard coded it to be
    the Mountain View zip code,
  6. but now we should use
    the location stored in shared preferences.
  7. We haven't explicitly shown
    you how to do this,
  8. so you might need
    to do some digging around
  9. on the Ander developer site
    to figure out how to do it.
  10. Once you've made the change,
    check the box to continue.