am 93d204ed
: cherrypick Change-Id: Icf74572932165270a93243f4a109979807b495df docs: fix misc broken links; update some screenshots using windows bug: 3258882
* commit '93d204ed98019322e434b714c7c0a619d69f24f5': cherrypick Change-Id: Icf74572932165270a93243f4a109979807b495df docs: fix misc broken links; update some screenshots using windows bug: 3258882
@ -296,7 +296,7 @@ $ android create test-project -m ../HelloAndroid -n HelloAndroidTest -p HelloAnd
|
|||||||
<h2 id="RunTestsCommand">Running Tests</h2>
|
<h2 id="RunTestsCommand">Running Tests</h2>
|
||||||
<p>
|
<p>
|
||||||
You run tests from the command line, either with Ant or with an
|
You run tests from the command line, either with Ant or with an
|
||||||
<a href="{@docRoot}http://developer.android.com/guide/developing/tools/adb.html">
|
<a href="{@docRoot}guide/developing/tools/adb.html">
|
||||||
Android Debug Bridge (adb)</a> shell.
|
Android Debug Bridge (adb)</a> shell.
|
||||||
</p>
|
</p>
|
||||||
<h3 id="RunTestsAnt">Quick build and run with Ant</h3>
|
<h3 id="RunTestsAnt">Quick build and run with Ant</h3>
|
||||||
@ -318,7 +318,7 @@ $ android create test-project -m ../HelloAndroid -n HelloAndroidTest -p HelloAnd
|
|||||||
<h3 id="RunTestsDevice">Running tests on a device or emulator</h3>
|
<h3 id="RunTestsDevice">Running tests on a device or emulator</h3>
|
||||||
<p>
|
<p>
|
||||||
When you run tests from the command line with
|
When you run tests from the command line with
|
||||||
<a href="{@docRoot}http://developer.android.com/guide/developing/tools/adb.html">
|
<a href="{@docRoot}guide/developing/tools/adb.html">
|
||||||
Android Debug Bridge (adb)</a>, you get more options for choosing the tests
|
Android Debug Bridge (adb)</a>, you get more options for choosing the tests
|
||||||
to run than with any other method. You can select individual test methods, filter tests
|
to run than with any other method. You can select individual test methods, filter tests
|
||||||
according to their annotation, or specify testing options. Since the test run is controlled
|
according to their annotation, or specify testing options. Since the test run is controlled
|
||||||
|
@ -496,8 +496,8 @@ on disk images, use <code>-help-disk-images</code>.</p>
|
|||||||
<td>Enable the root shell (as in <code>-shell</code> and specify the QEMU character
|
<td>Enable the root shell (as in <code>-shell</code> and specify the QEMU character
|
||||||
device to use for communication with the shell.</td>
|
device to use for communication with the shell.</td>
|
||||||
<td><device> must be a QEMU device type. See the documentation for '-serial <em>dev</em>' at
|
<td><device> must be a QEMU device type. See the documentation for '-serial <em>dev</em>' at
|
||||||
<a href="http://www.nongnu.org/qemu/qemu-doc.html#SEC10">http://www.bellard.org/qemu/qemu-doc.html#SEC10</a>
|
<a href="http://wiki.qemu.org/download/qemu-doc.html">wiki.qemu.org</a>
|
||||||
for a list of device types.</p>
|
for more information.</p>
|
||||||
|
|
||||||
<p>Here are some examples: </p>
|
<p>Here are some examples: </p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -156,14 +156,14 @@ Administration API lets you do the following:</p> <ul>
|
|||||||
<h2 id="sample">Sample Application</h2>
|
<h2 id="sample">Sample Application</h2>
|
||||||
|
|
||||||
<p>The examples used in this document are based on the <a
|
<p>The examples used in this document are based on the <a
|
||||||
href="{@docRoot}resources/samples/ApiDemos/src/com/example/
|
href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html">
|
||||||
android/apis/app/DeviceAdminSample.html">Device Administration API
|
Device Administration API
|
||||||
sample</a>, which is included in the SDK samples. For information on downloading and
|
sample</a>, which is included in the SDK samples. For information on downloading and
|
||||||
installing the SDK samples, see <a
|
installing the SDK samples, see <a
|
||||||
href="{@docRoot}resources/samples/get.html">
|
href="{@docRoot}resources/samples/get.html">
|
||||||
Getting the Samples</a>. Here is the <a
|
Getting the Samples</a>. Here is the <a
|
||||||
href="{@docRoot}resources/samples/ApiDemos/src/com/example/
|
href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html">
|
||||||
android/apis/app/DeviceAdminSample.html">complete code</a> for
|
complete code</a> for
|
||||||
the sample. </p>
|
the sample. </p>
|
||||||
<p>The
|
<p>The
|
||||||
sample application offers a demo of device admin features. It presents users
|
sample application offers a demo of device admin features. It presents users
|
||||||
|
@ -339,7 +339,7 @@ the feature as shown below.</p>
|
|||||||
<p class="caution">It's important to understand that the permissions that you
|
<p class="caution">It's important to understand that the permissions that you
|
||||||
request in <code><uses-permission></code> elements can directly affect how
|
request in <code><uses-permission></code> elements can directly affect how
|
||||||
Android Market filters your application. The reference section <a
|
Android Market filters your application. The reference section <a
|
||||||
href="permissions-features">Permissions that Imply Feature Requirements</a>,
|
href="#permissions-features">Permissions that Imply Feature Requirements</a>,
|
||||||
below, lists the full set of permissions that imply feature requirements and
|
below, lists the full set of permissions that imply feature requirements and
|
||||||
therefore trigger filtering.</p>
|
therefore trigger filtering.</p>
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ that already contains the appropriate parent View to contain the children of the
|
|||||||
in another layout file using <a href="#include-element"><code><include></code></a> and
|
in another layout file using <a href="#include-element"><code><include></code></a> and
|
||||||
this layout doesn't require a different {@link android.view.ViewGroup} container. For more
|
this layout doesn't require a different {@link android.view.ViewGroup} container. For more
|
||||||
information about merging layouts, read <a
|
information about merging layouts, read <a
|
||||||
href="{@docRoot}resources/articles/layout-tricks-merging.html">Layout
|
href="{@docRoot}resources/articles/layout-tricks-merge.html">Layout
|
||||||
Tricks: Merging</a>.</dd>
|
Tricks: Merging</a>.</dd>
|
||||||
|
|
||||||
</dl>
|
</dl>
|
||||||
|
@ -37,7 +37,7 @@ page.title=Content Provider Testing
|
|||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
href="{@docRoot}guide/topics/testing/topics/testing_android.html">
|
href="{@docRoot}guide/topics/testing/testing_android.html">
|
||||||
Testing Fundamentals</a>
|
Testing Fundamentals</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
@ -123,7 +123,8 @@ page.title=Content Provider Testing
|
|||||||
The constructor then creates a {@link android.test.mock.MockContentResolver} to use as the
|
The constructor then creates a {@link android.test.mock.MockContentResolver} to use as the
|
||||||
resolver for the test. The {@link android.test.mock.MockContentResolver} class is described in
|
resolver for the test. The {@link android.test.mock.MockContentResolver} class is described in
|
||||||
detail in the section
|
detail in the section
|
||||||
<a href="{@docRoot}guide/topics/testing/test_android#MockObjectClasses">Mock object classes</a>.
|
<a href="{@docRoot}guide/topics/testing/testing_android.html#MockObjectClasses">Mock object
|
||||||
|
classes</a>.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Lastly, the constructor creates an instance of the provider under test. This is a normal
|
Lastly, the constructor creates an instance of the provider under test. This is a normal
|
||||||
@ -137,7 +138,7 @@ page.title=Content Provider Testing
|
|||||||
{@link android.test.ProviderTestCase2} uses {@link android.test.IsolatedContext} and
|
{@link android.test.ProviderTestCase2} uses {@link android.test.IsolatedContext} and
|
||||||
{@link android.test.mock.MockContentResolver}, which are standard mock object classes. To
|
{@link android.test.mock.MockContentResolver}, which are standard mock object classes. To
|
||||||
learn more about them, please read
|
learn more about them, please read
|
||||||
<a href="{@docRoot}guide/topics/testing/test_android#MockObjectClasses">
|
<a href="{@docRoot}guide/topics/testing/testing_android.html#MockObjectClasses">
|
||||||
Testing Fundamentals</a>.
|
Testing Fundamentals</a>.
|
||||||
</p>
|
</p>
|
||||||
<h2 id="WhatToTest">What To Test</h2>
|
<h2 id="WhatToTest">What To Test</h2>
|
||||||
|
@ -73,6 +73,7 @@ page.title=Testing
|
|||||||
to test applications and devices.
|
to test applications and devices.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<!--
|
||||||
<h4>Samples</h4>
|
<h4>Samples</h4>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
@ -82,3 +83,4 @@ page.title=Testing
|
|||||||
testing a {@link android.app.Service}.
|
testing a {@link android.app.Service}.
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
-->
|
||||||
|
@ -79,6 +79,6 @@ page.title=What To Test
|
|||||||
<a href="{@docRoot}guide/developing/tools/emulator.html#netspeed">Network Speed Emulation</a>.
|
<a href="{@docRoot}guide/developing/tools/emulator.html#netspeed">Network Speed Emulation</a>.
|
||||||
To test GPS, you can use the emulator console and {@link android.location.LocationManager}. To
|
To test GPS, you can use the emulator console and {@link android.location.LocationManager}. To
|
||||||
learn more about the emulator console, please see
|
learn more about the emulator console, please see
|
||||||
<a href="{@docRoot}/guide/developing/tools/emulator.html#console">
|
<a href="{@docRoot}guide/developing/tools/emulator.html#console">
|
||||||
Using the Emulator Console</a>.
|
Using the Emulator Console</a>.
|
||||||
</p>
|
</p>
|
||||||
|
BIN
docs/html/images/developing/avd-dialog.png
Executable file → Normal file
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 46 KiB |
BIN
docs/html/images/sdk_manager_packages.png
Executable file → Normal file
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 112 KiB |
@ -1,7 +1,9 @@
|
|||||||
page.title=Layout Tricks: Merging Layouts
|
page.title=Layout Tricks: Merging Layouts
|
||||||
@jd:body
|
@jd:body
|
||||||
|
|
||||||
<p>The <a href=""></a> articles showed you how to use the <code><include /></code> tag in XML layouts, to reuse and share your layout code. This article explains the <code><merge /></code> tag and how it complements the <code><include /></code> tag.</p>
|
<p>The articles showed you how to use the <code><include /></code> tag in XML layouts, to
|
||||||
|
reuse and share your layout code. This article explains the <code><merge /></code> tag and how
|
||||||
|
it complements the <code><include /></code> tag.</p>
|
||||||
|
|
||||||
<p>The <code><merge /></code> tag was created for the purpose of
|
<p>The <code><merge /></code> tag was created for the purpose of
|
||||||
optimizing Android layouts by reducing the number of levels in view trees. It's
|
optimizing Android layouts by reducing the number of levels in view trees. It's
|
||||||
|
@ -17,7 +17,7 @@ to keep in a view hierarchy. A <code>ViewStub</code> can be best described as a
|
|||||||
inflated and added to the user interface only when you decide so.</p>
|
inflated and added to the user interface only when you decide so.</p>
|
||||||
|
|
||||||
<p>The following screenshot comes from the <a
|
<p>The following screenshot comes from the <a
|
||||||
href="http://code.google/p/shelves">Shelves</a> application. The main purpose of
|
href="http://code.google.com/p/shelves">Shelves</a> application. The main purpose of
|
||||||
the activity shown in the screenshot is to present the user with a browsable
|
the activity shown in the screenshot is to present the user with a browsable
|
||||||
list of books:</p>
|
list of books:</p>
|
||||||
|
|
||||||
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 48 KiB |
@ -132,7 +132,7 @@ panel of the Android SDK and AVD Manager. </li>
|
|||||||
|
|
||||||
<p>When you see that a new revision is available, you can use the Android SDK
|
<p>When you see that a new revision is available, you can use the Android SDK
|
||||||
and AVD Manager to quickly download it to your environment. Follow the same
|
and AVD Manager to quickly download it to your environment. Follow the same
|
||||||
procedure as given in <a href="">Installing SDK Components</a>, above. The new
|
procedure as given in <a href="#InstallingComponents">Installing SDK Components</a>, above. The new
|
||||||
component is installed in place of the old, but without impacting your
|
component is installed in place of the old, but without impacting your
|
||||||
applications. </p>
|
applications. </p>
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ in {@sdkPlatformVersion}, including new features and changes in the framework
|
|||||||
API since the previous version.</p>
|
API since the previous version.</p>
|
||||||
|
|
||||||
|
|
||||||
<h3 id="sip">SIP-based VoIP</h3>
|
<h3 id="sip">SIP-based VOIP</h3>
|
||||||
|
|
||||||
<p>The platform now includes a SIP protocol stack and framework API that lets
|
<p>The platform now includes a SIP protocol stack and framework API that lets
|
||||||
developers build internet telephony applications. Using the API, applications can offer
|
developers build internet telephony applications. Using the API, applications can offer
|
||||||
@ -679,7 +679,8 @@ removes several classes that were previously deprecated.</li>
|
|||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>New <code>xlargeScreens</code> attribute for <a
|
<li>New <code>xlargeScreens</code> attribute for <a
|
||||||
href="{@docRoot}guide/topics/manifest/supports-screens.html"><code><supports-screens></code></a>
|
href="{@docRoot}guide/topics/manifest/supports-screens-element.html"><code><supports-screens><
|
||||||
|
/ code > < /a>
|
||||||
element, to indicate whether the application supports
|
element, to indicate whether the application supports
|
||||||
extra large screen form-factors. For details, see <a
|
extra large screen form-factors. For details, see <a
|
||||||
href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
|
href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
|
||||||
@ -747,7 +748,7 @@ gyroscope sensor.</li>
|
|||||||
<li>{@link android.content.pm.PackageManager#FEATURE_SIP android.software.sip}
|
<li>{@link android.content.pm.PackageManager#FEATURE_SIP android.software.sip}
|
||||||
— The application uses the SIP API on the device.</li>
|
— The application uses the SIP API on the device.</li>
|
||||||
<li>{@link android.content.pm.PackageManager#FEATURE_SIP_VOIP
|
<li>{@link android.content.pm.PackageManager#FEATURE_SIP_VOIP
|
||||||
android.software.sip.voip} — The application uses a SIP-based VoIP
|
android.software.sip.voip} — The application uses a SIP-based VOIP
|
||||||
service on the device.</li>
|
service on the device.</li>
|
||||||
<li>{@link
|
<li>{@link
|
||||||
android.content.pm.PackageManager#FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
|
android.content.pm.PackageManager#FEATURE_TOUCHSCREEN_MULTITOUCH_JAZZHAND
|
||||||
|
@ -299,7 +299,8 @@ padding: .25em 1em;
|
|||||||
<p>Before you get started make sure that you have downloaded the latest <a href=
|
<p>Before you get started make sure that you have downloaded the latest <a href=
|
||||||
"{@docRoot}sdk/index.html">Android SDK</a> and upgraded your applications and environment as
|
"{@docRoot}sdk/index.html">Android SDK</a> and upgraded your applications and environment as
|
||||||
needed. The NDK is compatible with older platform versions but not older versions of the SDK tools.
|
needed. The NDK is compatible with older platform versions but not older versions of the SDK tools.
|
||||||
Also, take a moment to review the <a href="{@docRoot}sdk/ndk/reqs.html">System and Software Requirements</a>
|
Also, take a moment to review the <a href="{@docRoot}sdk/ndk/overview.html#reqs">System and
|
||||||
|
Software Requirements</a>
|
||||||
for the NDK, if you haven't already.</p>
|
for the NDK, if you haven't already.</p>
|
||||||
|
|
||||||
<p>To install the NDK, follow these steps:</p>
|
<p>To install the NDK, follow these steps:</p>
|
||||||
|
@ -160,7 +160,7 @@ so before continuing with the driver installation. </p>
|
|||||||
<a href="adding-components.html">Adding SDK Components</a> to launch the Android
|
<a href="adding-components.html">Adding SDK Components</a> to launch the Android
|
||||||
SDK and AVD Manager. From the <strong>Available Packages</strong> panel, select
|
SDK and AVD Manager. From the <strong>Available Packages</strong> panel, select
|
||||||
"Usb Driver Package" and download it to your computer. The driver files are
|
"Usb Driver Package" and download it to your computer. The driver files are
|
||||||
downloaded into the <code><sdk>\usb_driver</code> directory.</p>
|
downloaded into the <code><sdk>\google-usb_driver\</code> directory.</p>
|
||||||
|
|
||||||
<p>After the download, follow the instructions below to install or upgrade the
|
<p>After the download, follow the instructions below to install or upgrade the
|
||||||
driver, based on your needs and Windows operating system version. If you are
|
driver, based on your needs and Windows operating system version. If you are
|
||||||
|