From a90eb8fec1c67177b614b945bcc4a4b14aaabaff Mon Sep 17 00:00:00 2001 From: Scott Main Date: Tue, 5 Apr 2011 14:05:03 -0700 Subject: [PATCH] docs: fix the TOC in a few docs Change-Id: Iff2b91701ba39e17cc0d88804f3eb3f658e13c27 --- docs/html/guide/topics/data/data-storage.jd | 25 +++++++++---- docs/html/guide/topics/fundamentals/fragments.jd | 2 +- docs/html/guide/topics/nfc/index.jd | 45 +++++++++--------------- docs/html/guide/topics/wireless/bluetooth.jd | 11 ++---- 4 files changed, 40 insertions(+), 43 deletions(-) diff --git a/docs/html/guide/topics/data/data-storage.jd b/docs/html/guide/topics/data/data-storage.jd index e20d1ed22761..d31afa554c5e 100644 --- a/docs/html/guide/topics/data/data-storage.jd +++ b/docs/html/guide/topics/data/data-storage.jd @@ -16,9 +16,22 @@ page.title=Data Storage

In this document

  1. Using Shared Preferences
  2. -
  3. Using the Internal Storage
  4. -
  5. Using the External Storage
  6. -
  7. Using Databases
  8. +
  9. Using the Internal Storage +
      +
    1. Saving cache files
    2. +
    3. Other useful methods
    4. +
  10. +
  11. Using the External Storage +
      +
    1. Checking media availability
    2. +
    3. Accessing files on external storage
    4. +
    5. Saving files that should be shared
    6. +
    7. Saving cache files
    8. +
  12. +
  13. Using Databases +
      +
    1. Database debugging
    2. +
  14. Using a Network Connection
@@ -238,7 +251,7 @@ save to the external storage. All applications can read and write files placed o storage and the user can remove them.

-

Checking media availability

+

Checking media availability

Before you do any work with the external storage, you should always call {@link android.os.Environment#getExternalStorageState()} to check whether the media is available. The @@ -271,7 +284,7 @@ entirely, has been removed badly, etc. You can use these to notify the user with when your application needs to access the media.

-

Accessing files on external storage

+

Accessing files on external storage

If you're using API Level 8 or greater, use {@link android.content.Context#getExternalFilesDir(String) getExternalFilesDir()} to open a {@link @@ -310,7 +323,7 @@ files and including them in apps like Gallery or Music.

-

Saving files that should be shared

+

Saving files that should be shared

If you want to save files that are not specific to your application and that should not be deleted when your application is uninstalled, save them to one of the public directories on the diff --git a/docs/html/guide/topics/fundamentals/fragments.jd b/docs/html/guide/topics/fundamentals/fragments.jd index f78096072fc6..3908a7c48e9f 100644 --- a/docs/html/guide/topics/fundamentals/fragments.jd +++ b/docs/html/guide/topics/fundamentals/fragments.jd @@ -515,7 +515,7 @@ ExampleFragment fragment = (ExampleFragment) getFragmentManager().findFragmentBy -

Creating event callbacks to the activity

+

Creating event callbacks to the activity

In some cases, you might need a fragment to share events with the activity. A good way to do that is to define a callback interface inside the fragment and require that the host activity implement diff --git a/docs/html/guide/topics/nfc/index.jd b/docs/html/guide/topics/nfc/index.jd index f907b7057dc8..b486d3b081e9 100644 --- a/docs/html/guide/topics/nfc/index.jd +++ b/docs/html/guide/topics/nfc/index.jd @@ -1,35 +1,24 @@ page.title=Near Field Communication @jd:body -

- +

Near Field Communication (NFC) is a set of short-range wireless technologies, typically requiring a distance of 4cm or less. NFC operates at 13.56mhz, and at rates ranging from 106 diff --git a/docs/html/guide/topics/wireless/bluetooth.jd b/docs/html/guide/topics/wireless/bluetooth.jd index ae078b9da81e..48632ea6f5e1 100644 --- a/docs/html/guide/topics/wireless/bluetooth.jd +++ b/docs/html/guide/topics/wireless/bluetooth.jd @@ -18,18 +18,13 @@ other devices

  • Finding Devices
    1. Querying paired devices
    2. -
    3. Discovering devices -
      1. Enabling - discoverability
      -
    4. -
    -
  • +
  • Discovering devices
  • +
  • Connecting Devices
    1. Connecting as a server
    2. Connecting as a client
    3. -
    -
  • +
  • Managing a Connection
  • -- 2.11.0