Skip to content

Commit cbbdefc

Browse files
committed
wholesale manual merge of docs from gingerbread-docs to gingerbread
includes misc changes that occured for preview sdk and shortly after plus misc older stuff that got missed Change-Id: Ibb8490b2c6bae2d9df15326c7ffbcf83b638acc6
1 parent df71cab commit cbbdefc

File tree

8 files changed

+103
-41
lines changed

8 files changed

+103
-41
lines changed

docs/html/guide/developing/device.jd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ page.title=Developing on a Device
1313
</ol>
1414
<h2>See also</h2>
1515
<ol>
16-
<li><a
17-
href="{@docRoot}sdk/win-usb.html">USB Driver for Windows</a></li>
16+
<li><a href="{@docRoot}sdk/win-usb.html">Google USB Driver</a></li>
17+
<li><a href="{@docRoot}sdk/oem-usb.html">OEM USB Drivers</a></li>
1818
<li><a
1919
href="{@docRoot}guide/developing/eclipse-adt.html">Developing in Eclipse, with ADT</a></li>
2020
<li><a
@@ -73,8 +73,10 @@ would on the emulator. Before you can start, there are just a few things to do:<
7373
<li>Setup your system to detect your device.
7474
<ul>
7575
<li>If you're developing on Windows, you need to install a USB driver
76-
for adb. See the <a href="{@docRoot}sdk/win-usb.html">Windows USB
77-
Driver</a> documentation.</li>
76+
for adb. If you're using an Android Developer Phone (ADP), Nexus One, or Nexus S,
77+
see the <a href="{@docRoot}sdk/win-usb.html">Google Windows USB
78+
Driver</a>. Otherwise, you can find a link to the appropriate OEM driver in the
79+
<a href="{@docRoot}sdk/oem-usb.html">OEM USB Drivers</a> document.</li>
7880
<li>If you're developing on Mac OS X, it just works. Skip this step.</li>
7981
<li>If you're developing on Ubuntu Linux, you need to add a rules file
8082
that contains a USB configuration for each type of device you want to use for

docs/html/guide/topics/manifest/supports-screens-element.jd

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ page.title=&lt;supports-screens&gt;
99
&lt;supports-screens android:<a href="#small">smallScreens</a>=["true" | "false"]
1010
android:<a href="#normal">normalScreens</a>=["true" | "false"]
1111
android:<a href="#large">largeScreens</a>=["true" | "false"]
12+
android:<a href="#xlarge">xlargeScreens</a>=["true" | "false"]
1213
android:<a href="#any">anyDensity</a>=["true" | "false"] /&gt;
1314
</pre>
1415
</dd>
@@ -31,7 +32,7 @@ or scale them up by a factor of 1.5 (high dpi screens).
3132
The screen density is expressed as dots-per-inch (dpi).</p>
3233

3334
<p>For more information, see
34-
<a href="{@docRoot}guide/practices/screens_support.html">Multiple Screens Support</a>.</p>
35+
<a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple Screens</a>.</p>
3536

3637

3738
<dt>attributes:</dt>
@@ -43,8 +44,10 @@ The screen density is expressed as dots-per-inch (dpi).</p>
4344
the "normal" (traditional HVGA) screen. An application that does
4445
not support small screens <em>will not be available</em> for
4546
small screen devices, because there is little the platform can do
46-
to make such an application work on a smaller screen. Applications using
47-
API Level 4 or higher default this to "true", others are "false".
47+
to make such an application work on a smaller screen. If the application has set the <a
48+
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html">{@code &lt;uses-sdk&gt;}</a> element's
49+
{@code android:minSdkVersion} or {@code android:targetSdkVersion} attribute to "4" or higher,
50+
the default value for this is "true", any value less than "4" results in this set to "false".
4851
</dd>
4952

5053
<dt><a name="normal"></a>{@code android:normalScreens}</dt>
@@ -60,15 +63,33 @@ The screen density is expressed as dots-per-inch (dpi).</p>
6063
A large screen is defined as a screen that is significantly larger
6164
than a "normal" phone screen, and thus may require some special care
6265
on the application's part to make good use of it. An application that
63-
does not support large screens will be placed as a "postage stamp" on
64-
such a screen, so that it retains the dimensions it was originally
65-
designed for. Applications using API Level 4 or higher default
66-
to "true", others are "false".
66+
does not support large screens (declares this "false")&mdash;but does support "normal" or
67+
"small" screens&mdash;will be placed as a "postage stamp" on
68+
a large screen, so that it retains the dimensions it was originally
69+
designed for. If the application has set the <a
70+
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html">{@code &lt;uses-sdk&gt;}</a> element's
71+
{@code android:minSdkVersion} or {@code android:targetSdkVersion} attribute to "4" or higher,
72+
the default value for this is "true", any value less than "4" results in this set to "false".
73+
</dd>
74+
75+
<dt><a name="xlarge"></a>{@code android:xlargeScreens}</dt>
76+
<dd>Indicates whether the application supports extra large screen form-factors.
77+
An xlarge screen is defined as a screen that is significantly larger
78+
than a "large" screen, such as a tablet (or something larger) and may require special care
79+
on the application's part to make good use of it. An application that
80+
does not support xlarge screens (declares this "false")&mdash;but does support "large",
81+
"normal", or "small" screens&mdash;will be placed as a "postage stamp" on
82+
an xlarge screen, so that it retains the dimensions it was originally
83+
designed for. If the application has set the <a
84+
href="{@docRoot}guide/topics/manifest/uses-sdk-element.html">{@code &lt;uses-sdk&gt;}</a> element's
85+
{@code android:minSdkVersion} or {@code android:targetSdkVersion} attribute to "4" or higher,
86+
the default value for this is "true", any value less than "4" results in this set to "false".
87+
<p>This attribute was introduced in API Level 9.</p>
6788
</dd>
6889

6990
<dt><a name="any"></a>{@code android:anyDensity}</dt>
70-
<dd>Indicates whether the application can accommodate any screen
71-
density. Older applications (pre API Level 4) are assumed unable to
91+
<dd>Indicates whether the application includes resources to accommodate any screen
92+
density. Older applications (before API Level 4) are assumed unable to
7293
accomodate all densities and this is "false" by default. Applications using
7394
API Level 4 or higher are assumed able to and this is "true" by default.
7495
You can explicitly supply your abilities here.
@@ -84,7 +105,8 @@ The screen density is expressed as dots-per-inch (dpi).</p>
84105
<dt>see also:</dt>
85106
<dd>
86107
<ul>
87-
<li><a href="{@docRoot}guide/practices/screens_support.html">Multiple Screens Support</a></li>
108+
<li><a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
109+
Screens</a></li>
88110
<li>{@link android.util.DisplayMetrics}</li>
89111
</ul>
90112
</dd>
117 KB
Loading

docs/html/resources/index.jd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ techniques that you find in the samples!</dd>
2929
<dd>Links to the Android discussion groups and information about other ways to
3030
collaborate with other developers. </dd>
3131

32-
<dt><b>Webinars</b></dt>
33-
<dd>Online training videos on wide range of Android topics
34-
coupled with live IRC chat sessions for discussions. </dd>
35-
3632
<dt><b>More</b></dt>
3733
<dd>Quick development tips, troubleshooting information, and frequently asked
3834
questions (FAQs). </dd>

docs/html/resources/resources_toc.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -276,18 +276,8 @@
276276
</li>
277277
</ul>
278278
</li>
279-
<!-- Webinar section -->
280-
<li>
281-
<h2><span class="en">Webinars</span></h2>
282-
<ul>
283-
<li><a href="<?cs var:toroot ?>resources/webinars/webinar-watch.html">
284-
<span class="en">Watch a Webinar</span>
285-
</a></li>
286-
<li><a href="<?cs var:toroot ?>resources/webinars/webinar-upcoming.html">
287-
<span class="en">Upcoming Schedule</span>
288-
</a></li>
289-
</ul>
290-
</li>
279+
280+
291281

292282
<li>
293283
<h2><span class="en">More</span>

docs/html/sdk/1.6_r1/upgrading.jd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
page.title=Upgrading the SDK
22
sdk.version=1.6
3-
sdk.preview=0
43
@jd:body
54

65

docs/html/sdk/android-3.0-highlights.jd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ This document provides a glimpse of some of the new features and technologies, a
129129

130130
<p style="margin-top:1em;margin-bottom:.75em;"><strong>Camera and Gallery</strong></p>
131131

132-
<p>The Camera application has been redesigned to take advantage of a larger screen for quick access to exposure, focus, flash, zoom, front-facing camera, and more. To let users capture scenes in new ways, it adds built-in support for time-lapse video recording. Gallery application lets users view albums and other collections in full-screen mode, with easy access to thumbnails for other photos in the collection. </p>
132+
<p>The Camera application has been redesigned to take advantage of a larger screen for quick access to exposure, focus, flash, zoom, front-facing camera, and more. To let users capture scenes in new ways, it adds built-in support for time-lapse video recording. The Gallery application lets users view albums and other collections in full-screen mode, with easy access to thumbnails for other photos in the collection. </p>
133133

134134
<p style="margin-top:1em;margin-bottom:.75em;"><strong>Contacts</strong></p>
135135

docs/html/sdk/ndk/index.jd

Lines changed: 62 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
ndk=true
22

3-
ndk.win_download=android-ndk-r5-windows.zip
4-
ndk.win_bytes=62217450
5-
ndk.win_checksum=59cbb02d91d74e9c5c7278d94c989e80
3+
ndk.win_download=android-ndk-r5b-windows.zip
4+
ndk.win_bytes=61299831
5+
ndk.win_checksum=87745ada305ab639399161ab4faf684c
66

7-
ndk.mac_download=android-ndk-r5-darwin-x86.tar.bz2
7+
ndk.mac_download=android-ndk-r5b-darwin-x86.tar.bz2
88
ndk.mac_bytes=50210863
9-
ndk.mac_checksum=9dee8e4cb529a5619e9b8d1707478c32
9+
ndk.mac_checksum=019a14622a377b3727ec789af6707037
1010

11-
ndk.linux_download=android-ndk-r5-linux-x86.tar.bz2
12-
ndk.linux_bytes=44362746
13-
ndk.linux_checksum=49d5c35ec02bafc074842542c58b7eb3
11+
ndk.linux_download=android-ndk-r5b-linux-x86.tar.bz2
12+
ndk.linux_bytes=44138539
13+
ndk.linux_checksum=4c0045ddc2bfd657be9d5177d0e0b7e7
1414

1515
page.title=Android NDK
1616
@jd:body
@@ -59,11 +59,64 @@ padding: .25em 1em;
5959
}
6060
</style>
6161

62+
6263
<div class="toggleable open">
6364
<a href="#"
6465
onclick="return toggleDiv(this)"><img src="{@docRoot}assets/images/triangle-opened.png"
6566
class="toggle-img"
6667
height="9px"
68+
width="9px" /> Android NDK, Revision 5b</a> <em>(January 2011)</em>
69+
70+
<div class="toggleme">
71+
<p>This release of the NDK does not include any new features compared to r5. The r5b release addresses the
72+
following problems in the r5 release:
73+
</p>
74+
<ul>
75+
<li>The r5 binaries required glibc 2.11, but the r5b binaries are generated with a special
76+
toolchain that targets glibc 2.7 or higher instead. The Linux toolchain binaries now run on Ubuntu 8.04 or higher. </li>
77+
<li>Fixes a compiler bug in the arm-linux-androideabi-4.4.3 toolchain.
78+
The previous binary generated invalid thumb instruction sequences when
79+
dealing with signed chars.</li>
80+
<li>Adds missing documentation for the
81+
"gnustl_static" value for APP_STL, that allows you to link against
82+
a static library version of GNU libstdc++. </li>
83+
<li>The following <code>ndk-build</code> issues are fixed:
84+
<ul>
85+
<li>A bug that created inconsistent dependency files when a
86+
compilation error occured on Windows. This prevented a proper build after
87+
the error was fixed in the source code.</li>
88+
<li>A Cygwin-specific bug where using very short paths for
89+
the Android NDK installation or the project path led to the
90+
generation of invalid dependency files. This made incremental builds
91+
impossible.</li>
92+
<li>A typo that prevented the cpufeatures library from working correctly
93+
with the new NDK toolchain.</li>
94+
<li>Builds in Cygwin are faster by avoiding calls to <code>cygpath -m</code>
95+
from GNU Make for every source or object file, which caused problems
96+
with very large source trees. In case this doesn't work properly, define <code>NDK_USE_CYGPATH=1</code> in your
97+
environment to use <code>cygpath -m</code> again.</li>
98+
<li>The Cygwin installation now notifies the user of invalid installation paths that contain spaces. Previously, an invalid path
99+
would output an error that complained about an incorrect version of GNU Make, even if the right one was installed.
100+
</ul>
101+
</li>
102+
<li>Fixed a typo that prevented the <code>NDK_MODULE_PATH</code> environment variable from working properly when
103+
it contained multiple directories separated with a colon. </li>
104+
<li>The <code>prebuilt-common.sh</code> script contains fixes to check the compiler for 64-bit
105+
generated machine code, instead of relying on the host tag, which
106+
allows the 32-bit toolchain to rebuild properly on Snow Leopard. The toolchain rebuild scripts now also support
107+
using a 32-bit host toolchain.</li>
108+
<li>A missing declaration for <code>INET_ADDRSTRLEN</code> was added to <code>&lt;netinet/in.h&gt;</code>.</li>
109+
<li>Missing declarations for <code>IN6_IS_ADDR_MC_NODELOCAL</code> and <code>IN6_IS_ADDR_MC_GLOBAL</code> were added to <code>&lt;netinet/in6.h&gt;</code>.</li>
110+
<li>'asm' was replaced with '__asm__' in <code>&lt;asm/byteorder.h&gt;</code> to allow compilation with <code>-std=c99</code>.</li>
111+
</ul>
112+
</div>
113+
</div>
114+
115+
<div class="toggleable closed">
116+
<a href="#"
117+
onclick="return toggleDiv(this)"><img src="{@docRoot}assets/images/triangle-closed.png"
118+
class="toggle-img"
119+
height="9px"
67120
width="9px" /> Android NDK, Revision 5</a> <em>(December 2010)</em>
68121

69122
<div class="toggleme">
@@ -73,7 +126,7 @@ padding: .25em 1em;
73126
graphics and window management, assets, and storage. Developers can also implement the
74127
Android application lifecycle in native code with help from the new
75128
{@link android.app.NativeActivity} class. For detailed information describing the changes in this
76-
release, read the CHANGES.HTML document included in the downloaded NDK package.
129+
release, read the <code>CHANGES.HTML</code> document included in the downloaded NDK package.
77130
</p>
78131
<dl>
79132
<dt>General notes:</dt>

0 commit comments

Comments
 (0)