am ec80d7f3: docs: consistency fixit for the quickview boxes in the dev guide

Merge commit 'ec80d7f311b1a0899bb4caf5b380b07027e902d1' into gingerbread

* commit 'ec80d7f311b1a0899bb4caf5b380b07027e902d1':
  docs: consistency fixit for the quickview boxes in the dev guide
This commit is contained in:
Scott Main
2010-10-04 14:32:26 -07:00
committed by Android Git Automerger
33 changed files with 233 additions and 168 deletions

View File

@ -4,7 +4,7 @@ page.title=Market Filters
<div id="qv-wrapper">
<div id="qv">
<h2 align="left">Market filters quickview</h2>
<h2>Quickview</h2>
<ul> <li>Android Market applies filters to that let you control whether your app is shown to a
user who is browing or searching for apps.</li>
<li>Filtering is determined by elements in an app's manifest file,

View File

@ -1,6 +1,30 @@
page.title=Designing for Performance
@jd:body
<div id="qv-wrapper">
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href="#intro">Introduction</a></li>
<li><a href="#optimize_judiciously">Optimize Judiciously</a></li>
<li><a href="#object_creation">Avoid Creating Objects</a></li>
<li><a href="#myths">Performance Myths</a></li>
<li><a href="#prefer_static">Prefer Static Over Virtual</a></li>
<li><a href="#internal_get_set">Avoid Internal Getters/Setters</a></li>
<li><a href="#use_final">Use Static Final For Constants</a></li>
<li><a href="#foreach">Use Enhanced For Loop Syntax</a></li>
<li><a href="#avoid_enums">Avoid Enums Where You Only Need Ints</a></li>
<li><a href="#package_inner">Use Package Scope with Inner Classes</a></li>
<li><a href="#avoidfloat">Use Floating-Point Judiciously</a> </li>
<li><a href="#library">Know And Use The Libraries</a></li>
<li><a href="#native_methods">Use Native Methods Judiciously</a></li>
<li><a href="#closing_notes">Closing Notes</a></li>
</ol>
</div>
</div>
<p>An Android application will run on a mobile device with limited computing
power and storage, and constrained battery life. Because of
this, it should be <em>efficient</em>. Battery life is one reason you might
@ -8,24 +32,6 @@ want to optimize your app even if it already seems to run "fast enough".
Battery life is important to users, and Android's battery usage breakdown
means users will know if your app is responsible draining their battery.</p>
<p>This document covers these topics: </p>
<ul>
<li><a href="#intro">Introduction</a></li>
<li><a href="#optimize_judiciously">Optimize Judiciously</a></li>
<li><a href="#object_creation">Avoid Creating Objects</a></li>
<li><a href="#myths">Performance Myths</a></li>
<li><a href="#prefer_static">Prefer Static Over Virtual</a></li>
<li><a href="#internal_get_set">Avoid Internal Getters/Setters</a></li>
<li><a href="#use_final">Use Static Final For Constants</a></li>
<li><a href="#foreach">Use Enhanced For Loop Syntax</a></li>
<li><a href="#avoid_enums">Avoid Enums Where You Only Need Ints</a></li>
<li><a href="#package_inner">Use Package Scope with Inner Classes</a></li>
<li><a href="#avoidfloat">Use Floating-Point Judiciously</a> </li>
<li><a href="#library">Know And Use The Libraries</a></li>
<li><a href="#native_methods">Use Native Methods Judiciously</a></li>
<li><a href="#closing_notes">Closing Notes</a></li>
</ul>
<p>Note that although this document primarily covers micro-optimizations,
these will almost never make or break your software. Choosing the right
algorithms and data structures should always be your priority, but is

View File

@ -1,11 +1,37 @@
page.title=Designing for Responsiveness
@jd:body
<div id="qv-wrapper">
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href="#anr">What Triggers ANR?</a></li>
<li><a href="#avoiding">How to Avoid ANR</a></li>
<li><a href="#reinforcing">Reinforcing Responsiveness</a></li>
</ol>
</div>
</div>
<div class="figure">
<img src="{@docRoot}images/anr.png" alt="Screenshot of ANR dialog box" width="240" height="320"/>
<p><strong>Figure 1.</strong> An ANR dialog displayed to the user.</p>
</div>
<p>It's possible to write code that wins every performance test in the world, but still sends users
in a fiery rage when they try to use the application. These are the applications that aren't
<em>responsive</em> enough &mdash; the ones that feel
sluggish, hang or freeze for significant periods, or take too long to process
input. </p>
<p>In Android, the system guards against applications that are insufficiently responsive for a
period of time by displaying a dialog to the user, called the Application Not Responding (ANR)
dialog. The user can choose to let the application continue, but the user won't appreciate having to
act on this dialog every time he or she uses your application. So it's important to design
responsiveness into your application, so that the system never has cause to display an ANR to the
user. </p>
<p>It's possible to write code that wins every performance test in the world,
but still sends users in a fiery rage when they try to use the application.
These are the applications that aren't <em>responsive</em> enough &mdash; the

View File

@ -1,6 +1,26 @@
page.title=Designing for Seamlessness
@jd:body
<div id="qv-wrapper">
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href="#drop">Don't Drop Data</a></li>
<li><a href="#expose">Don't Expose Raw Data</a></li>
<li><a href="#interrupt">Don't Interrupt the User</a></li>
<li><a href="#threads">Got a Lot to Do? Do it in a Thread</a></li>
<li><a href="#multiple-activities">Don't Overload a Single Activity Screen</a></li>
<li><a href="#themes">Extend System Themes</a></li>
<li><a href="#flexui">Design Your UI to Work with Multiple Screen Resolutions</a></li>
<li><a href="#network">Assume the Network is Slow</a></li>
<li><a href="#keyboard">Don't Assume Touchscreen or Keyboard</a></li>
<li><a href="#battery">Do Conserve the Device Battery</a></li>
</ol>
</div>
</div>
<p>Even if your application is fast and responsive, certain design decisions can
still cause problems for users &mdash; because of unplanned interactions with
other applications or dialogs, inadvertent loss of data, unintended blocking,
@ -42,20 +62,7 @@ system as just an even-larger federation of these components. This benefits you
by allowing you to integrate cleanly and seamlessly with other applications, and
so you should design your own code to return the favor.</p>
<p>This document discusses common seamlessness problems and how to avoid them.
It covers these topics: </p>
<ul>
<li><a href="#drop">Don't Drop Data</a></li>
<li><a href="#expose">Don't Expose Raw Data</a></li>
<li><a href="#interrupt">Don't Interrupt the User</a></li>
<li><a href="#threads">Got a Lot to Do? Do it in a Thread</a></li>
<li><a href="#multiple-activities">Don't Overload a Single Activity Screen</a></li>
<li><a href="#themes">Extend System Themes</a></li>
<li><a href="#flexui">Design Your UI to Work with Multiple Screen Resolutions</a></li>
<li><a href="#network">Assume the Network is Slow</a></li>
<li><a href="#keyboard">Don't Assume Touchscreen or Keyboard</a></li>
<li><a href="#battery">Do Conserve the Device Battery</a></li>
</ul>
<p>This document discusses common seamlessness problems and how to avoid them.</p>
<h2 id="drop">Don't Drop Data</h2>

View File

@ -5,7 +5,7 @@ page.title=Supporting Multiple Screens
<div id="qv-wrapper">
<div id="qv">
<h2>Multiple screens quickview: </h2>
<h2>Quickview</h2>
<ul>
<li>Android runs on devices that have different screen sizes and resolutions.</li>
<li>The screen on which your application is displayed can affect its user interface.</li>

View File

@ -4,7 +4,7 @@ page.title=Activity and Task Design Guidelines
<div id="qv-wrapper">
<div id="qv">
<h2>Activity and task design quickview</h2>
<h2>Quickview</h2>
<ul>
<li>Activities are the main building blocks of Android applications. </li>

View File

@ -4,7 +4,7 @@ page.title=Icon Design Guidelines, Android 2.0
<div id="qv-wrapper">
<div id="qv">
<h2>Icon design quickview</h2>
<h2>Quickview</h2>
<ul>
<li>You can use several types of icons in an Android application.</li>
@ -35,25 +35,30 @@ page.title=Icon Design Guidelines, Android 2.0
</ol>
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
Screens</a></li>
<li><a href="{@docRoot}shareables/icon_templates-v2.0.zip">Android Icon
Templates Pack, v2.0 &raquo;</a></li>
</ol>
<h2>Older versions</h2>
<ol>
<li style="margin-top:4px;"><a
href="{@docRoot}guide/practices/ui_guidelines/icon_design_1.html">Icon Design
Guidelines, Android 1.0</a></li>
</ol>
<h2>Downloads</h2>
<ol>
<li><a href="{@docRoot}shareables/icon_templates-v2.0.zip">Android Icon
Templates Pack, v2.0 &raquo;</a></li>
<li><a href="{@docRoot}shareables/icon_templates-v1.0.zip">Android Icon
Templates Pack, v1.0 &raquo;</a></li>
</ol>
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
Screens</a></li>
</ol>
</div>
</div>

View File

@ -4,7 +4,7 @@ page.title=Icon Design Guidelines, Android 1.0
<div id="qv-wrapper">
<div id="qv">
<h2>Icon design quickview</h2>
<h2>Quickview</h2>
<ul>
<li>You can use several types of icons in an Android application.</li>
@ -35,12 +35,17 @@ application can use the standard icons by referencing them as resources.</li>
</ol>
<h2>Downloads</h2>
<ol>
<li><a href="{@docRoot}shareables/icon_templates-v1.0.zip">Android Icon
Templates Pack, v1.0 &raquo;</a></li>
</ol>
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple Screens</a></li>
<li><a href="{@docRoot}shareables/icon_templates-v1.0.zip">Android Icon
Templates Pack, v1.0 &raquo;</a></li>
</ol>

View File

@ -4,7 +4,7 @@ page.title=Menu Design Guidelines
<div id="qv-wrapper">
<div id="qv">
<h2>Menu design quickview</h2>
<h2>Quickview</h2>
<ul>
<li>An Options menu is for any commands that are global to the current activity. </li>

View File

@ -4,7 +4,7 @@ page.title=Widget Design Guidelines
<div id="qv-wrapper">
<div id="qv">
<h2>Widget design quickview</h2>
<h2>Quickview</h2>
<ul>
<li>Widgets have six standard sizes on the Home screen</li>
@ -27,7 +27,7 @@ page.title=Widget Design Guidelines
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/topics/appwidgets/index.html">AppWidgets</a> topic in the <em>Dev Guide</em></li>
<li><a href="{@docRoot}guide/topics/appwidgets/index.html">App Widgets</a></li>
<li><a href="http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html">AppWidgets blog post</a></li>
</ol>

View File

@ -4,7 +4,7 @@ page.title=Signing Your Applications
<div id="qv-wrapper">
<div id="qv">
<h2>Signing quickview</h2>
<h2>Quickview</h2>
<ul>
<li>All Android apps <em>must</em> be signed</a></li>

View File

@ -4,7 +4,7 @@ page.title=Licensing Your Applications
<div id="qv-wrapper">
<div id="qv">
<h2>Market Licensing quickview: </h2>
<h2>Quickview</h2>
<ul>
<li>Licensing lets you protect your application on any device that includes Android Market.</li>
<li>Your app maintains control of how it enforces its licensing status. </li>

View File

@ -1,20 +1,6 @@
page.title=Preparing to Publish: A Checklist
@jd:body
<!--
<div id="qv-wrapper">
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href=""></a></li>
</ol>
</div>
</div>
-->
<p>Publishing an application means testing it, packaging it appropriately, and
making it available to users of Android-powered mobile devices.</p>
@ -34,7 +20,7 @@ Applications</a> document. </p>
<div class="special">
<p>Before you consider your application ready for release:</p>
<p><a href="#releaseready">Before you consider your application ready for release</a>:</p>
<ol>
<li>Test your application extensively on an actual device </li>
@ -44,7 +30,7 @@ Applications</a> document. </p>
<li>Turn off logging and debugging and clean up data/files</li>
</ol>
<p>Before you do the final compile of your application:</p>
<p><a href="#finalcompile">Before you do the final compile of your application</a>:</p>
<ol start="6">
<li>Version your application</li>
@ -52,8 +38,9 @@ Applications</a> document. </p>
<li>Register for a Maps API Key, if your application is using MapView elements</li>
</ol>
<p><em>Compile your application...</em></p>
<p>After compiling your application:</p>
<p><a href="#compile">Compile your application</a></p>
<p><a href="#post-compile">After you compile your application</a>:</p>
<ol start="9">
<li>Sign your application</li>
<li>Test your compiled application</li>
@ -242,7 +229,7 @@ to download Maps data. </li>
you can compile your application for release.</p>
<h2 id="post-compile">After compiling your application</h2>
<h2 id="post-compile">After you compile your application</h2>
<h3 id="signapp">9. Sign your application</h3>

View File

@ -4,7 +4,7 @@ page.title=Publishing Your Applications
<div id="qv-wrapper">
<div id="qv">
<h2>Publishing quickview</h2>
<h2>Quickview</h2>
<ul>
<li>You can publish your application using a hosted service such as Android Market or through a web server.</li>

View File

@ -4,7 +4,7 @@ page.title=Versioning Your Applications
<div id="qv-wrapper">
<div id="qv">
<h2>Versioning quickview</h2>
<h2>Quickview</h2>
<ul>
<li>Your application <em>must</em> be versioned</a></li>

View File

@ -3,12 +3,14 @@ page.title=App Widgets
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.appwidget.AppWidgetProvider}</li>
<li>{@link android.appwidget.AppWidgetProviderInfo}</li>
<li>{@link android.appwidget.AppWidgetManager}</li>
</ol>
<h2>Quickview</h2>
<ul>
<li>App Widgets provide users access to some of your application features
directly from the Home screen (without the need to launch an activity)</li>
<li>App Widgets are backed by a special kind of broadcast receiver that handles the App
Widget lifecycle</li>
</ul>
<h2>In this document</h2>
<ol>
<li><a href="#Basics">The Basics</a></li>
@ -28,6 +30,13 @@ page.title=App Widgets
</li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.appwidget.AppWidgetProvider}</li>
<li>{@link android.appwidget.AppWidgetProviderInfo}</li>
<li>{@link android.appwidget.AppWidgetManager}</li>
</ol>
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/practices/ui_guidelines/widget_design.html">App Widget Design

View File

@ -3,14 +3,6 @@ page.title=Application Fundamentals
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Activity}</li>
<li>{@link android.app.Service}</li>
<li>{@link android.content.BroadcastReceiver}</li>
<li>{@link android.content.ContentProvider}</li>
<li>{@link android.content.Intent}</li>
</ol>
<h2>In this document</h2>
<ol>
@ -43,6 +35,16 @@ page.title=Application Fundamentals
<li><a href="#proclife">Processes and lifecycles</a></li>
</ol></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Activity}</li>
<li>{@link android.app.Service}</li>
<li>{@link android.content.BroadcastReceiver}</li>
<li>{@link android.content.ContentProvider}</li>
<li>{@link android.content.Intent}</li>
</ol>
</div>
</div>

View File

@ -3,15 +3,6 @@ page.title=Intents and Intent Filters
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.content.Intent}</li>
<li>{@link android.content.IntentFilter}</li>
<li>{@link android.app.Activity}</li>
<li>{@link android.app.Service}</li>
<li>{@link android.content.BroadcastReceiver}</li>
<li>{@link android.content.pm.PackageManager}</li>
</ol>
<h2>In this document</h2>
<ol>
@ -22,6 +13,15 @@ page.title=Intents and Intent Filters
<li style="margin-left: 2em"><a href="#imatch">Using intent matching</a></li>
<li><a href="#npex">Note Pad Example</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.content.Intent}</li>
<li>{@link android.content.IntentFilter}</li>
<li>{@link android.content.BroadcastReceiver}</li>
<li>{@link android.content.pm.PackageManager}</li>
</ol>
</div>
</div>

View File

@ -4,7 +4,7 @@ page.title=Audio and Video
<div id="qv-wrapper">
<div id="qv">
<h2>Audio/Video quickview</h2>
<h2>Quickview</h2>
<ul>
<li>Audio playback and record</li>
<li>Video playback</li>
@ -12,14 +12,6 @@ page.title=Audio and Video
<li>Built-in codecs for a variety of media. See <a href="{@docRoot}guide/appendix/media-formats.html">Android Supported Media Formats</a></li>
</ul>
<h2>Key classes</h2>
<ol>
<li>{@link android.media.MediaPlayer MediaPlayer} (all available formats)</li>
<li>{@link android.media.MediaRecorder MediaRecorder} (all available formats)</li>
<li>{@link android.media.JetPlayer JetPlayer} (playback, JET content)</li>
<li>{@link android.media.SoundPool SoundPool} (sound management)</li>
</ol>
<h2>In this document</h2>
<ol>
<li><a href="#playback.html">Audio and Video Playback</a>
@ -32,6 +24,14 @@ page.title=Audio and Video
<li><a href="#capture">Audio Capture</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.media.MediaPlayer MediaPlayer}</li>
<li>{@link android.media.MediaRecorder MediaRecorder}</li>
<li>{@link android.media.JetPlayer JetPlayer}</li>
<li>{@link android.media.SoundPool SoundPool}</li>
</ol>
<h2>See also</h2>
<ol>
<li><a href="{@docRoot}guide/topics/data/data-storage.html">Data Storage</a></li>

View File

@ -3,12 +3,6 @@ page.title=Content Providers
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.content.ContentProvider}</li>
<li>{@link android.content.ContentResolver}</li>
<li>{@link android.database.Cursor}</li>
</ol>
<h2>In this document</h2>
<ol>
@ -18,6 +12,13 @@ page.title=Content Providers
<li><a href="#creating">Creating a content provider</a></li>
<li><a href="#urisum">Content URI summary</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.content.ContentProvider}</li>
<li>{@link android.content.ContentResolver}</li>
<li>{@link android.database.Cursor}</li>
</ol>
</div>
</div>

View File

@ -33,7 +33,7 @@ parent.link=index.html
<li>{@link android.content.ContentProvider}</li>
</ol>
<h2>Related Samples</h2>
<h2>Related samples</h2>
<ol>
<li><a href="{@docRoot}resources/samples/SearchableDictionary/index.html">Searchable
Dictionary</a></li>

View File

@ -13,7 +13,7 @@ page.title=Search
<ol>
<li><a href="searchable-config.html">Searchable Configuration</a></li>
</ol>
<h2>Related Samples</h2>
<h2>Related samples</h2>
<ol>
<li><a href="{@docRoot}resources/samples/SearchableDictionary/index.html">Searchable
Dictionary</a></li>

View File

@ -29,7 +29,7 @@ parent.link=index.html
<li>{@link android.app.SearchManager}</li>
</ol>
<h2>Related Samples</h2>
<h2>Related samples</h2>
<ol>
<li><a href="{@docRoot}resources/samples/SearchableDictionary/index.html">Searchable
Dictionary</a></li>

View File

@ -52,7 +52,7 @@ page.title=Testing and Instrumentation
</ol>
</li>
</ol>
<h2>Key Classes</h2>
<h2>Key classes</h2>
<ol>
<li>{@link android.test.InstrumentationTestRunner}</li>
<li>{@link android.test.ActivityInstrumentationTestCase2}</li>
@ -61,7 +61,7 @@ page.title=Testing and Instrumentation
<li>{@link android.test.ProviderTestCase2}</li>
<li>{@link android.test.ServiceTestCase}</li>
</ol>
<h2>Related Tutorials</h2>
<h2>Related tutorials</h2>
<ol>
<li>
<a href="{@docRoot}resources/tutorials/testing/helloandroid_test.html">Hello, Testing</a>
@ -70,7 +70,7 @@ page.title=Testing and Instrumentation
<a href="{@docRoot}resources/tutorials/testing/activity_test.html">Activity Testing</a>
</li>
</ol>
<h2>See Also</h2>
<h2>See also</h2>
<ol>
<li>
<a href="{@docRoot}guide/developing/testing/testing_eclipse.html">Testing in Eclipse, with ADT</a>

View File

@ -11,11 +11,11 @@ parent.link=index.html
<li><a href="#HandlingUserSelections">Handling User Selections</a></li>
</ol>
<h2>See also</h2>
<h2>Related tutorials</h2>
<ol>
<li><a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Hello Spinner tutorial</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-listview.html">Hello ListView tutorial</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-gridview.html">Hello GridView tutorial</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-spinner.html">Spinner</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-listview.html">List View</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-gridview.html">Grid View</a></li>
</ol>
</div>
</div>

View File

@ -5,12 +5,6 @@ parent.link=index.html
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.view.View}</li>
<li>{@link android.view.ViewGroup}</li>
<li>{@link android.view.ViewGroup.LayoutParams}</li>
</ol>
<h2>In this document</h2>
<ol>
<li><a href="#write">Write the XML</a></li>
@ -26,6 +20,12 @@ parent.link=index.html
<li><a href="#example">Example Layout</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.view.View}</li>
<li>{@link android.view.ViewGroup}</li>
<li>{@link android.view.ViewGroup.LayoutParams}</li>
</ol>
</div>
</div>

View File

@ -5,10 +5,6 @@ parent.link=index.html
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Dialog}</li>
</ol>
<h2>In this document</h2>
<ol>
<li><a href="#ShowingADialog">Showing a Dialog</a></li>
@ -26,6 +22,11 @@ parent.link=index.html
</li>
<li><a href="#CustomDialog">Creating a Custom Dialog</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Dialog}</li>
</ol>
</div>
</div>

View File

@ -4,13 +4,6 @@ page.title=User Interface
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.view.View}</li>
<li>{@link android.view.ViewGroup}</li>
<li>{@link android.widget Widget classes}</li>
</ol>
<h2>In this document</h2>
<ol>
<li><a href="#ViewHierarchy">View Hierarchy</a></li>
@ -25,6 +18,13 @@ page.title=User Interface
</ol>
</li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.view.View}</li>
<li>{@link android.view.ViewGroup}</li>
<li>{@link android.widget Widget classes}</li>
</ol>
</div>
</div>

View File

@ -3,13 +3,7 @@ page.title=Notifying the User
<div id="qv-wrapper">
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href="#Toast">Toast Notification</a></li>
<li><a href="#StatusBarNotification">Status Bar Notification</a></li>
<li><a href="#Dialog">Dialog Notification</a></li>
</ol>
<h2>More about</h2>
<h2>Topics</h2>
<ol>
<li><a href="toasts.html">Creating Toast Notifications</a></li>
<li><a href="notifications.html">Creating Status Bar Notifications</a></li>

View File

@ -5,18 +5,21 @@ parent.link=index.html
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Notification}</li>
<li>{@link android.app.NotificationManager}</li>
</ol>
<h2>Quickview</h2>
<ul>
<li>A status bar notification allows your application to notify the user of an event
without interupting their current activity</li>
<li>You can attach an intent to your notification that the system will initiate when the
user clicks it</li>
</ul>
<h2>In this document</h2>
<ol>
<li><a href="#Basics">The Basics</a></li>
<li><a href="#ManageYourNotifications">Managing your Notifications</a></li>
<li><a href="#CreateANotification">Creating a Notification</a>
<ol>
<li><a href="#Update">Updating the notification</a></li>
<li><a href="#Updating">Updating the notification</a></li>
<li><a href="#Sound">Adding a sound</a></li>
<li><a href="#Vibration">Adding vibration</a></li>
<li><a href="#Lights">Adding flashing lights</a></li>
@ -25,6 +28,11 @@ parent.link=index.html
</li>
<li><a href="#CustomExpandedView">Creating a Custom Expanded View</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.app.Notification}</li>
<li>{@link android.app.NotificationManager}</li>
</ol>
</div>
</div>

View File

@ -5,16 +5,24 @@ parent.link=index.html
<div id="qv-wrapper">
<div id="qv">
<h2>Key classes</h2>
<h2>Quickview</h2>
<ol>
<li>{@link android.widget.Toast}</li>
<li>A toast is a message that appears on the surface of the screen for a moment, but it
does not take focus (or pause the current activity), so it cannot accept user input</li>
<li>You can customize the toast layout to include images</li>
</ol>
<h2>In this document</h2>
<ol>
<li><a href="#Basics">The Basics</a></li>
<li><a href="#Position">Positioning your Toast</a></li>
<li><a href="#Positioning">Positioning your Toast</a></li>
<li><a href="#CustomToastView">Creating a Custom Toast View</a></li>
</ol>
<h2>Key classes</h2>
<ol>
<li>{@link android.widget.Toast}</li>
</ol>
</div>
</div>

View File

@ -13,9 +13,9 @@ parent.link=index.html
<li><a href="#HandlingFocus">Handling Focus</a></li>
</ol>
<h2>See also</h2>
<h2>Related tutorials</h2>
<ol>
<li><a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Hello Form Stuff tutorial</a></li>
<li><a href="{@docRoot}resources/tutorials/views/hello-formstuff.html">Form Stuff</a></li>
</ol>
</div>
</div>

View File

@ -3,14 +3,13 @@ page.title=Bluetooth
<div id="qv-wrapper">
<div id="qv">
<h2>Key Classes</h2>
<ol>
<li>{@link android.bluetooth.BluetoothAdapter}</li>
<li>{@link android.bluetooth.BluetoothDevice}</li>
<li>{@link android.bluetooth.BluetoothSocket}</li>
<li>{@link android.bluetooth.BluetoothServerSocket}</li>
</ol>
<h2>Quickview</h2>
<ul>
<li>Android's bluetooth APIs allow your application to perform wireless data transactions with
other devices</li>
</ul>
<h2>In this document</h2>
<ol>
<li><a href="#TheBasics">The Basics</a></li>
@ -33,11 +32,18 @@ page.title=Bluetooth
</li>
<li><a href="#ManagingAConnection">Managing a Connection</a></li>
</ol>
<h2>See also</h2>
<h2>Key classes</h2>
<ol>
<li><a href="{@docRoot}resources/samples/BluetoothChat/index.html">Bluetooth Chat sample
app</a></li>
<li>{@link android.bluetooth.BluetoothAdapter}</li>
<li>{@link android.bluetooth.BluetoothDevice}</li>
<li>{@link android.bluetooth.BluetoothSocket}</li>
<li>{@link android.bluetooth.BluetoothServerSocket}</li>
</ol>
<h2>Related samples</h2>
<ol>
<li><a href="{@docRoot}resources/samples/BluetoothChat/index.html">Bluetooth Chat</a></li>
</ol>
</div>