From 4e7db256878bbf2058fa7d1bf07ddbe1c7206103 Mon Sep 17 00:00:00 2001 From: Dirk Dougherty Date: Tue, 5 Jan 2010 17:03:39 -0800 Subject: [PATCH] SDK doc change: add "Optimizing Judiciously" excerpt to best practices. Clean up blockquote usage in other files. Bug: 2160782 Change-Id: I537194ecddc53d4f0e8456ce958ae8db6f521593 --- .../android/provider/ContactsContract.java | 44 ++--- docs/html/guide/appendix/faq/commontasks.jd | 6 +- docs/html/guide/developing/tools/adb.jd | 4 +- .../guide/practices/design/performance.jd | 175 ++++++++++++++++++ .../practices/ui_guidelines/menu_design.jd | 8 +- .../guide/topics/resources/resources-i18n.jd | 6 +- docs/html/resources/faq/commontasks.jd | 6 +- 7 files changed, 210 insertions(+), 39 deletions(-) diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index c3b0f1c91faa3..a56bb4593ba23 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -48,49 +48,49 @@ import java.io.InputStream; * ContactsContract defines an extensible database of contact-related * information. Contact information is stored in a three-tier data model: *

- *
- *

+ *

+ * + * *

* Other tables include: *

- *
- *

+ *

+ * + *
  • + * {@link PhoneLookup}, which is used for quick caller-ID lookup
  • + * */ @SuppressWarnings("unused") public final class ContactsContract { diff --git a/docs/html/guide/appendix/faq/commontasks.jd b/docs/html/guide/appendix/faq/commontasks.jd index e88a8672e98a8..107199a0944c5 100644 --- a/docs/html/guide/appendix/faq/commontasks.jd +++ b/docs/html/guide/appendix/faq/commontasks.jd @@ -160,11 +160,9 @@ It is not necessary to put external JARs in the assets folder.
  • Create an {@link android.app.AlertDialog app.AlertDialog} class
  • Set the {@link android.R.style#Theme_Dialog} theme attribute to @android:style/Theme.Dialog in your AndroidManifest.xml file. For example: - -
    <activity class="AddRssItem" android:label="Add an item" android:theme="@android:style/Theme.Dialog"/>
    -
    -
    +
  • +

    Calling startActivity() or startActivityForResult() will open a new screen in whatever way it defines itself (if it uses a floating theme it will be floating, otherwise it will be full screen).

    diff --git a/docs/html/guide/developing/tools/adb.jd b/docs/html/guide/developing/tools/adb.jd index e8c726f8cdc91..dd60a3cc2c46a 100644 --- a/docs/html/guide/developing/tools/adb.jd +++ b/docs/html/guide/developing/tools/adb.jd @@ -83,12 +83,12 @@ page.title=Android Debug Bridge

    The server then sets up connections to all running emulator/device instances. It locates emulator/device instances by scanning odd-numbered ports in the range 5555 to 5585, the range used by emulators/devices. Where the server finds an adb daemon, it sets up a connection to that port. Note that each emulator/device instance acquires a pair of sequential ports — an even-numbered port for console connections and an odd-numbered port for adb connections. For example:

    -
    +

    Emulator 1, console: 5554
    Emulator 1, adb: 5555
    Emulator 2, console: 5556
    Emulator 2, adb: 5557 ... -

    +

    As shown, the emulator instance connected to adb on port 5555 is the same as the instance whose console listens on port 5554.

    diff --git a/docs/html/guide/practices/design/performance.jd b/docs/html/guide/practices/design/performance.jd index 1eef34234e6bc..ec34ac9c5366d 100644 --- a/docs/html/guide/practices/design/performance.jd +++ b/docs/html/guide/practices/design/performance.jd @@ -22,6 +22,7 @@ actual lines of code, loops, and so on.

    This document covers these topics:

    -
    -
    <activity class="AddRssItem" android:label="Add an item" android:theme="@android:style/Theme.Dialog"/>
    -
    -
    +

    Calling startActivity() or startActivityForResult() will open a new screen in whatever way it defines itself (if it uses a floating theme it will be floating, otherwise it will be full screen).