Return to Video

Turning Weather Notifications OnOff - Developing Android Apps

  • 0:00 - 0:03
    Alright, you're done.
    Let's start by adding
  • 0:03 - 0:06
    all of the strings we're going
    to need for our new preference.
  • 0:06 - 0:10
    Key, label, and some things like
    true, false, and default.
  • 0:10 - 0:14
    Then we'll additional preference
    into pref general xnl,
  • 0:14 - 0:18
    a check box preference
    that uses those strings we just defined.
  • 0:18 - 0:21
    Let's go over to our sync adaptor.
    In the notify function,
  • 0:21 - 0:23
    we add the code to fetch the preference
  • 0:23 - 0:25
    and make use of it.
    And there we have it.
  • 0:25 - 0:29
    Now we won't display notifications
    if the user doesn't want us to,
  • 0:29 - 0:32
    which is a great thing for an app to do.
タイトル:
Turning Weather Notifications OnOff - Developing Android Apps
概説:

more » « less
Video Language:
English
Team:
Udacity
プロジェクト:
UD853 - Developing Android Apps
Duration:
0:32

English subtitles

改訂 Compare revisions