Skip to content

Commit 9b06f09

Browse files
joefernandezAndroid Git Automerger
authored andcommitted
am 5b18c71: Merge "docs: Release Notes v2 for Android 4.0.3, ADT 16.0.1, Support lib r5-r6" into ics-mr1
* commit '5b18c714bbff269d7db880b42de34fd1385da9f9': docs: Release Notes v2 for Android 4.0.3, ADT 16.0.1, Support lib r5-r6
2 parents d30167f + 5b18c71 commit 9b06f09

File tree

2 files changed

+72
-62
lines changed

2 files changed

+72
-62
lines changed

docs/html/sdk/compatibility-library.jd

Lines changed: 70 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ page.title=Support Package
44

55
<div id="qv-wrapper">
66
<div id="qv">
7-
7+
88
<h2>In this document</h2>
99
<ol>
1010
<li><a href="#Notes">Revisions</a></li>
@@ -35,7 +35,8 @@ worry less about platform versions.</p>
3535

3636
<p class="note"><strong>Note:</strong> The Support Package includes more than one support
3737
library. Each one has a different <em>minimum API level</em>. For example, one library requires API
38-
level 4 or higher, while another requires API level 13 or higher (v13 is a superset of v4 and includes additional
38+
level 4 or higher, while another requires API level 13 or higher (v13 is a superset of v4 and
39+
includes additional
3940
support classes to work with v13 APIs). The minimum version is indicated
4041
by the directory name, such as {@code v4/} and {@code v13/}.</p>
4142

@@ -54,7 +55,9 @@ the Support Package, as denoted by revision number.</p>
5455
</a></p>
5556

5657
<div class="toggle-content-toggleme" style="padding-left:2em">
57-
<dl>
58+
<p class="note"><strong>Note:</strong> Reference for support library APIs are now available with
59+
the framework references, for example: {@link android.support.v4.app}.</p>
60+
<dl>
5861
<dt>Changes for v4 support library:</dt>
5962
<dd>
6063
<ul>
@@ -68,30 +71,30 @@ the Support Package, as denoted by revision number.</p>
6871
<li>Added {@link android.support.v4.view.PagerTitleStrip}, a non-interactive title
6972
strip, that can be added as a child of ViewPager. Developers can supply text
7073
appearance and color, as well as layout sizing and gravity information.</li>
71-
<li>Updated PagerAdapter methods to take ViewGroup objects, rather than View to avoid
72-
class casting in adapter implementations. For more information, see
73-
{@link android.support.v4.view.PagerAdapter}.</li>
74-
<li>Updated ViewPager to use Launcher Workspace-style fling behavior.</li>
74+
<li>Updated {@link android.support.v4.view.PagerAdapter} methods to take ViewGroup
75+
objects, rather than View to avoid class casting in adapter implementations.</li>
76+
<li>Updated {@link android.support.v4.view.ViewPager} to use Launcher-style
77+
fling behavior.</li>
7578
<li>Bug fixes for user interface interaction and test automation.</li>
7679
</ul>
7780
</li>
78-
81+
7982
<li>Support for Fragments:
8083
<ul>
8184
<li>Changed {@code setStartDeferred()} method to {@link
8285
android.support.v4.app.Fragment#setUserVisibleHint}.</li>
8386
<li>Added deferred start for off-screen pages to improve performance.</li>
84-
</ul>
87+
</ul>
8588
</li>
86-
89+
8790
<li>Support for Accessiblity APIs:
8891
<ul>
8992
<li>Updated {@link android.support.v4.view.AccessibilityDelegateCompat} methods
9093
to return empty lists instead of null.</li>
9194
<li>Added new APIs needed by the v4 samples.</li>
9295
</ul>
9396
</li>
94-
97+
9598
</ul>
9699
</dd>
97100
</dl>
@@ -111,34 +114,35 @@ the Support Package, as denoted by revision number.</p>
111114
<ul>
112115
<li>Support for Accessiblity APIs:
113116
<ul>
114-
<li>Added <code>AccessibilityDelegateCompat</code> to support
115-
{@link android.view.View.AccessibilityDelegate}.</li>
117+
<li>Added {@link android.support.v4.view.AccessibilityDelegateCompat}
118+
to support {@link android.view.View.AccessibilityDelegate}.</li>
116119

117-
<li>Added <code>AccessibilityEventCompat</code> to support
118-
{@link android.view.accessibility.AccessibilityEvent}.</li>
120+
<li>Added {@link android.support.v4.view.accessibility.AccessibilityEventCompat}
121+
to support {@link android.view.accessibility.AccessibilityEvent}.</li>
119122

120-
<li>Added <code>AccessibilityManagerCompat</code> to support
121-
{@link android.view.accessibility.AccessibilityManager}.</li>
123+
<li>Added {@link android.support.v4.view.accessibility.AccessibilityManagerCompat}
124+
to support {@link android.view.accessibility.AccessibilityManager}.</li>
122125

123-
<li>Added <code>AccessibilityNodeInfoCompat</code> to support
124-
{@link android.view.accessibility.AccessibilityNodeInfo}.</li>
126+
<li>Added {@link android.support.v4.view.accessibility.AccessibilityNodeInfoCompat}
127+
to support {@link android.view.accessibility.AccessibilityNodeInfo}.</li>
125128

126-
<li>Added <code>AccessibilityRecordCompat</code> to support
127-
{@link android.view.accessibility.AccessibilityRecord}.</li>
129+
<li>Added {@link android.support.v4.view.accessibility.AccessibilityRecordCompat}
130+
to support {@link android.view.accessibility.AccessibilityRecord}.</li>
128131

129-
<li>Added <code>AccessibilityServiceInfoCompat</code> to support
130-
{@link android.accessibilityservice.AccessibilityServiceInfo}.</li>
132+
<li>Added {@link
133+
android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat}
134+
to support {@link android.accessibilityservice.AccessibilityServiceInfo}.</li>
131135

132-
<li>Added <code>ViewGroupCompat</code>
136+
<li>Added {@link android.support.v4.view.ViewGroupCompat}
133137
to support accessibility features in {@link android.view.ViewGroup}.
134138
</li>
135139

136-
<li>Modified <code>ViewCompat</code>
140+
<li>Modified {@link android.support.v4.view.ViewCompat}
137141
to support accessibility features in {@link android.view.View}.</li>
138142
</ul>
139143
</li>
140144

141-
<li>Changes to <code>ViewPager</code>:
145+
<li>Changes to ViewPager:
142146
<ul>
143147
<li>Added support for margins between pages.
144148
An optional {@link android.graphics.drawable.Drawable} can be provided
@@ -170,7 +174,7 @@ the Support Package, as denoted by revision number.</p>
170174
<ul>
171175
<li>Added <code>EdgeEffectCompat</code> to
172176
support {@link android.widget.EdgeEffect}.</li>
173-
177+
174178
<li>Added <code>LocalBroadcastManager</code> to allow applications to easily
175179
register for and receive intents within a single application without
176180
broadcasting them globally.</li>
@@ -186,7 +190,7 @@ the Support Package, as denoted by revision number.</p>
186190
<li>Various bug fixes.</li>
187191
</ul>
188192
</li>
189-
193+
190194
<li>Fixed a {@link android.content.Loader} bug that caused issues in
191195
canceling {@link android.os.AsyncTask}s when running on Froyo and older
192196
versions of the platform. The support
@@ -210,7 +214,7 @@ the Support Package, as denoted by revision number.</p>
210214
Compatibility Package, revision 3 (July 2011)
211215
</a></p>
212216

213-
<div class="toggle-content-toggleme" style="padding-left:2em">
217+
<div class="toggle-content-toggleme" style="padding-left:2em">
214218
<dl>
215219
<dt>Changes for v4 support library:</dt>
216220
<dd>
@@ -264,7 +268,7 @@ Android 3.2 and higher (all other APIs in the v4 library are already available w
264268
Compatibility Package, revision 2 (May 2011)
265269
</a></p>
266270

267-
<div class="toggle-content-toggleme" style="padding-left:2em">
271+
<div class="toggle-content-toggleme" style="padding-left:2em">
268272
<dl>
269273
<dt>Changes for v4 library:</dt>
270274
<dd>
@@ -287,7 +291,7 @@ Android 3.2 and higher (all other APIs in the v4 library are already available w
287291
Compatibility Package, revision 1 (March 2011)
288292
</a></p>
289293

290-
<div class="toggle-content-toggleme" style="padding-left:2em">
294+
<div class="toggle-content-toggleme" style="padding-left:2em">
291295
<p>Initial release with the v4 library.</p>
292296
</div>
293297

@@ -301,7 +305,7 @@ Android 3.2 and higher (all other APIs in the v4 library are already available w
301305
Manager. To install:</p>
302306

303307
<ol>
304-
<li>Launch the SDK and AVD Manager.
308+
<li>Launch the SDK and AVD Manager.
305309
<p>From Eclipse, you can select <strong>Window</strong>
306310
&gt; <strong>Android SDK and AVD Manager</strong>. Or, launch {@code SDK Manager.exe} from
307311
the {@code &lt;sdk&gt;/} directory (on Windows only) or {@code android} from the {@code
@@ -328,7 +332,7 @@ libs/} directory.
328332
<p>For example, the library that supports API level 4 and up is located at {@code
329333
&lt;sdk&gt;/extras/android/support/v4/android-support-v4.jar}.</p>
330334
</li>
331-
<li>Add the JAR to your project build path.
335+
<li>Add the JAR to your project build path.
332336
<p>In Eclipse, right-click the JAR file in the Package Explorer, select <strong>Build
333337
Path</strong> &gt; <strong>Add to Build Path</strong>.</p>
334338
</li>
@@ -339,7 +343,7 @@ provided APIs are available in the {@code android.support} package (for
339343
example, {@code android.support.v4}).</p>
340344

341345
<p class="note"><strong>Tip:</strong> To see the library APIs in action, take a look at the sample
342-
apps in {@code extras/android/support/&lt;version&gt;/samples/}.</p>
346+
apps in {@code &lt;sdk&gt;/extras/android/support/&lt;version&gt;/samples/}.</p>
343347

344348
<p class="warning"><strong>Warning:</strong> Be certain that you not confuse the standard
345349
{@code android} packages with those in {@code android.support} library. Some code completion tools
@@ -377,17 +381,20 @@ differences, however. Most notably:</p>
377381

378382
<ul>
379383
<li>When creating an activity to use fragments, you must declare your activity to extend the
380-
{@code FragmentActivity} class (instead of the traditional {@link android.app.Activity}
381-
class).</li>
382-
<li>To manage your fragments and loaders, you must use the methods {@code
383-
FragmentActivity.getSupportFragmentManager()} and {@code
384-
FragmentActivity.getSupportLoaderManager()} (instead of the {@link
385-
android.app.Activity#getFragmentManager()} and {@link android.app.Activity#getLoaderManager()}
386-
methods).</li>
384+
{@link android.support.v4.app.FragmentActivity} class (instead of the traditional
385+
{@link android.app.Activity} class).</li>
386+
<li>To manage your fragments and loaders, you must use the methods
387+
{@link android.support.v4.app.FragmentActivity#getSupportFragmentManager
388+
FragmentActivity.getSupportFragmentManager()} and
389+
{@link android.support.v4.app.FragmentActivity#getSupportLoaderManager
390+
FragmentActivity.getSupportLoaderManager()} (instead of the
391+
{@link android.app.Activity#getFragmentManager()} and
392+
{@link android.app.Activity#getLoaderManager()} methods).</li>
387393
<li>The {@link android.app.ActionBar} is <strong>not supported</strong> by the library.
388394
However, when creating your <a href="{@docRoot}guide/topics/ui/menus.html#options-menu">Options
389395
Menu</a>, you can declare which items should be added to the Action Bar when it's available (on
390-
Android 3.0 or later). You can do so with the {@code MenuCompat.setShowAsAction()} method. For
396+
Android 3.0 or later). You can do so with the
397+
{@link android.support.v4.view.MenuCompat#setShowAsAction MenuCompat.setShowAsAction()} method, for
391398
example:
392399
<pre>
393400
public boolean onCreateOptionsMenu(Menu menu) {
@@ -397,16 +404,19 @@ public boolean onCreateOptionsMenu(Menu menu) {
397404
return true;
398405
}
399406
</pre>
407+
<p>Also see the <a href="{@docRoot}resources/samples/ActionBarCompat/index.html">Action Bar
408+
Compatibility</a> sample for a demonstration of how to use {@link android.app.ActionBar} on Android
409+
3.0+ and also support action bar functionality on older versions.</p>
400410
</li>
401411
</ul>
402412

403413
<div class="note"><p><strong>Tip:</strong> To enable the Holographic theme on devices
404414
running Android 3.0 or higher, declare in your manifest file that your application targets
405-
API level 11. For example:</p>
415+
API level 11, for example:</p>
406416
<pre>
407417
&lt;uses-sdk android:minSdkVersion="4" android:targetSdkVersion="11" /&gt;
408418
</pre>
409-
<p>This way, your application automatically receives the Holographic theme and the Action Bar for
419+
<p>This way, your application automatically receives the Holographic theme and the Action Bar for
410420
each activity when running on Android 3.0 and higher.</p>
411421
</div>
412422

@@ -417,29 +427,29 @@ Apps for Android 3.0</a>.</p>
417427

418428
<h2 id="Docs">Reference Docs</h2>
419429

420-
<p>The libraries currently do not provide reference documentation for the included APIs. To generate
421-
your own set using the {@code javadoc} tool, perform the following from a command (as appropriate
422-
for the library version you're using). In this example, documentation is generated for the v4
423-
library:</p>
430+
<p>The reference documentation for the Support Packages is included as part of the Android
431+
online developer documentation:</p>
424432

425-
<pre class="no-pretty-print">
426-
cd &lt;sdk&gt;/extras/android/support/v4/
427-
mkdir docs
428-
javadoc -sourcepath src/java/ -subpackages android.support.v4 -d docs
429-
</pre>
430-
<p>Open the {@code docs/index.html} file to begin browsing the generated documentation.</p>
433+
<ul>
434+
<li><a href="{@docRoot}reference/android/support/v4/app/package-summary.html">Support Package
435+
API 4 Reference</a></li>
436+
<li><a href="{@docRoot}reference/android/support/v13/app/package-summary.html">Support Package
437+
API 13 Reference</a></li>
438+
</ul>
431439

432440

433441
<h2 id="Samples">Samples</h2>
434442

435443
<p>If you want to see some code that uses the support libraries, samples are included with the
436-
Support Package, inside each support library directory. For example, at {@code
437-
extras/android/support/v4/samples/}.</p>
444+
Support Package, inside each support library directory, for example; {@code
445+
&lt;sdk&gt;/extras/android/support/v4/samples/}. You can also view these samples as part of the
446+
Android online developer documentation:</p>
447+
448+
<ul>
449+
<li><a href="{@docRoot}resources/samples/Support4Demos/index.html">Support API 4 Demos</a></li>
450+
<li><a href="{@docRoot}resources/samples/Support13Demos/index.html">Support API 13 Demos</a></li>
451+
</ul>
438452

439453
<p>Additionally, the <a href="http://code.google.com/p/iosched/">Google I/O App</a> is a complete
440454
application that uses the v4 support library to provide a single APK for both handsets and tablets
441455
and also demonstrates some of Android's best practices in Android UI design.</p>
442-
443-
444-
445-

docs/html/sdk/tools-notes.jd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ padding: .25em 1em;
9494
<ul>
9595
<li>Added Lint tools to detect common errors in Android projects.
9696
(<a href="http://tools.android.com/recent/lint">more info</a>)</li>
97-
<a>Added sensor emulation support, which allows the emulator to read sensor data from a
97+
<li>Added sensor emulation support, which allows the emulator to read sensor data from a
9898
physical Android device.
9999
(<a href="http://tools.android.com/recent/sensoremulation">more info</a>)</li>
100100
<li>Added support for using a webcam to emulate a camera on Mac OS X.</li>
@@ -201,7 +201,7 @@ padding: .25em 1em;
201201
commands, see the
202202
<a href="{@docRoot}guide/developing/building/building-cmdline.html#AntReference">Ant Command
203203
Reference</a>.</li>
204-
<li>Changed how library projects are built.</a></li>
204+
<li>Changed how library projects are built.</li>
205205
<li>Improved incremental builds, so that resource compilation runs less frequently. Builds no
206206
longer run when you edit strings or layouts (unless you add a new <code>id</code>) and no longer
207207
run once for each library project.</li>

0 commit comments

Comments
 (0)