From bbb3f41e26ac5a996913907dc63786146132b4ce Mon Sep 17 00:00:00 2001 From: Scott Main Date: Fri, 9 Mar 2012 19:10:40 -0800 Subject: docs: add Settings dev guide; a few changes to javadocs Change-Id: I2d671aafe91e4c6e224e2a556a60dce9f93f11ae --- docs/html/guide/components/fragments.jd | 6 + docs/html/guide/guide_toc.cs | 3 + docs/html/guide/topics/ui/settings.jd | 1171 +++++++++++++++++++++++++++++++ 3 files changed, 1180 insertions(+) create mode 100644 docs/html/guide/topics/ui/settings.jd (limited to 'docs/html/guide') diff --git a/docs/html/guide/components/fragments.jd b/docs/html/guide/components/fragments.jd index 938e0ab02ea6..4f620339355a 100644 --- a/docs/html/guide/components/fragments.jd +++ b/docs/html/guide/components/fragments.jd @@ -709,6 +709,12 @@ href="{@docRoot}guide/components/activities.html#Lifecycle">managing the activit lifecycle also apply to fragments. What you also need to understand, though, is how the life of the activity affects the life of the fragment.

+

Caution: If you need a {@link android.content.Context} object +within your {@link android.app.Fragment}, you can call {@link android.app.Fragment#getActivity()}. +However, be careful to call {@link android.app.Fragment#getActivity()} only when the fragment is +attached to an activity. When the fragment is not yet attached, or was detached during the end of +its lifecycle, {@link android.app.Fragment#getActivity()} will return null.

+

Coordinating with the activity lifecycle

diff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs index 94b9773474ba..9465f1882a06 100644 --- a/docs/html/guide/guide_toc.cs +++ b/docs/html/guide/guide_toc.cs @@ -197,6 +197,9 @@
  • Action Bar
  • +
  • + Settings +