am 1432cd8: AI 148183: Add missing android namespace to minSdkVersion
Merge commit '1432cd874af2250f021d2e21d0ae048be08cbdc7' into donut * commit '1432cd874af2250f021d2e21d0ae048be08cbdc7': AI 148183: Add missing android namespace to minSdkVersion
This commit is contained in:
committed by
The Android Open Source Project
commit
15d98b23ca
@@ -207,7 +207,7 @@ looks like this: </p>
|
|||||||
|
|
||||||
<pre><code><manifest>
|
<pre><code><manifest>
|
||||||
...
|
...
|
||||||
<uses-sdk minSdkVersion="2" />
|
<uses-sdk android:minSdkVersion="2" />
|
||||||
...
|
...
|
||||||
</manifest></code>
|
</manifest></code>
|
||||||
</pre>
|
</pre>
|
||||||
@@ -219,11 +219,11 @@ function properly on their devices, especially if it uses APIs introduced in
|
|||||||
Android 1.1. </p>
|
Android 1.1. </p>
|
||||||
|
|
||||||
<p>If your application uses APIs introduced in Android 1.1 but does not declare
|
<p>If your application uses APIs introduced in Android 1.1 but does not declare
|
||||||
<code><uses-sdk minSdkVersion="2" /></code>, then it will run properly on
|
<code><uses-sdk android:minSdkVersion="2" /></code>, then it will run properly on
|
||||||
Android 1.1 devices but <em>not</em> on Android 1.0 devices. </p>
|
Android 1.1 devices but <em>not</em> on Android 1.0 devices. </p>
|
||||||
|
|
||||||
<p>If your application does not use any new APIs introduced in Android 1.1, you
|
<p>If your application does not use any new APIs introduced in Android 1.1, you
|
||||||
can indicate Android 1.0 compatibility by removing <code>minSdkVersion</code> or
|
can indicate Android 1.0 compatibility by removing <code>android:minSdkVersion</code> or
|
||||||
setting the attribute to "1". However, before publishing your application, you
|
setting the attribute to "1". However, before publishing your application, you
|
||||||
must make sure to compile your application against the Android 1.0 system image
|
must make sure to compile your application against the Android 1.0 system image
|
||||||
(available in the Android 1.0 SDK), to ensure that it builds and functions
|
(available in the Android 1.0 SDK), to ensure that it builds and functions
|
||||||
@@ -271,7 +271,7 @@ for authentication to the server.</p>
|
|||||||
<p>Developers should note that the registration service for MapView is now
|
<p>Developers should note that the registration service for MapView is now
|
||||||
active and Google Maps is actively enforcing the Maps API Key requirement.
|
active and Google Maps is actively enforcing the Maps API Key requirement.
|
||||||
For information about how to register for a Maps API Key, see
|
For information about how to register for a Maps API Key, see
|
||||||
<a href="{@docRoot}guide/topics/location/geo/mapkey.html">
|
<a href="http://code.google.com/android/add-ons/google-apis/mapkey.html">
|
||||||
Obtaining a Maps API Key</a>.</p>
|
Obtaining a Maps API Key</a>.</p>
|
||||||
|
|
||||||
<p><strong>USB Drivers for Windows</strong></p>
|
<p><strong>USB Drivers for Windows</strong></p>
|
||||||
|
|||||||
@@ -35,17 +35,17 @@ system to correctly determine whether an application is compatible with
|
|||||||
the system, prior to installing the application. </p>
|
the system, prior to installing the application. </p>
|
||||||
|
|
||||||
<p>Applications indicate the lowest system API Level that they are compatible with by adding
|
<p>Applications indicate the lowest system API Level that they are compatible with by adding
|
||||||
a value to the <code>minSdkVersion</code> attribute.
|
a value to the <code>android:minSdkVersion</code> attribute.
|
||||||
The value of the attribute is an integer corresponding to an API Level
|
The value of the attribute is an integer corresponding to an API Level
|
||||||
identifier. Prior to installing an application, the system checks the value of
|
identifier. Prior to installing an application, the system checks the value of
|
||||||
<code>minSdkVersion</code> and allows the install only
|
<code>android:minSdkVersion</code> and allows the install only
|
||||||
if the referenced integer is less than or equal to the API Level integer stored
|
if the referenced integer is less than or equal to the API Level integer stored
|
||||||
in the system itself. </p>
|
in the system itself. </p>
|
||||||
|
|
||||||
<p>If you use the Android 1.1 system image to build an application
|
<p>If you use the Android 1.1 system image to build an application
|
||||||
compatible with Android-powered devices running the Android 1.1
|
compatible with Android-powered devices running the Android 1.1
|
||||||
platform, you <strong style="color:red">must</strong> set the
|
platform, you <strong style="color:red">must</strong> set the
|
||||||
<code>minSdkVersion</code> attribute to "2" in order to specify that your application
|
<code>android:minSdkVersion</code> attribute to "2" in order to specify that your application
|
||||||
is compatible only with devices using the Android 1.1 (or greater) system image.
|
is compatible only with devices using the Android 1.1 (or greater) system image.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -68,14 +68,14 @@ your application will function properly on their devices, especially if
|
|||||||
it uses <a href="#apichange">APIs introduced in Android 1.1</a>. </p>
|
it uses <a href="#apichange">APIs introduced in Android 1.1</a>. </p>
|
||||||
|
|
||||||
<p>If your application uses APIs introduced in Android 1.1 but does not
|
<p>If your application uses APIs introduced in Android 1.1 but does not
|
||||||
declare <code><uses-sdk minSdkVersion="2" /></code>, then it will
|
declare <code><uses-sdk android:minSdkVersion="2" /></code>, then it will
|
||||||
run properly on Android 1.1 devices but <em>not</em> on Android 1.0
|
run properly on Android 1.1 devices but <em>not</em> on Android 1.0
|
||||||
devices. In the latter case, the application will crash at runtime when
|
devices. In the latter case, the application will crash at runtime when
|
||||||
it tries to use the Android 1.1 APIs.</p>
|
it tries to use the Android 1.1 APIs.</p>
|
||||||
|
|
||||||
<p>If your application does not use any new APIs introduced in Android
|
<p>If your application does not use any new APIs introduced in Android
|
||||||
1.1, you can indicate Android 1.0 compatibility by removing
|
1.1, you can indicate Android 1.0 compatibility by removing
|
||||||
<code>minSdkVersion</code> or setting the attribute to "1". However,
|
<code>android:minSdkVersion</code> or setting the attribute to "1". However,
|
||||||
before publishing your application, you must make sure to compile your
|
before publishing your application, you must make sure to compile your
|
||||||
application against the Android 1.0 system image (available in the
|
application against the Android 1.0 system image (available in the
|
||||||
Android 1.0 SDK), to ensure that it builds and functions properly for
|
Android 1.0 SDK), to ensure that it builds and functions properly for
|
||||||
|
|||||||
@@ -38,10 +38,10 @@ the system, prior to installing the application.</p>
|
|||||||
<p>Applications can reference a specific API Level value in their
|
<p>Applications can reference a specific API Level value in their
|
||||||
manifest files, to indicate the minimum version of the Android system
|
manifest files, to indicate the minimum version of the Android system
|
||||||
required to run the application. To reference a minimum API Level, applications
|
required to run the application. To reference a minimum API Level, applications
|
||||||
can add a <code>minSdkVersion</code> attribute in their manifest files.
|
can add an <code>android:minSdkVersion</code> attribute in their manifest files.
|
||||||
The value of the attribute is an integer corresponding to an API Level
|
The value of the attribute is an integer corresponding to an API Level
|
||||||
identifier. Prior to installing an application, the system then checks the value of
|
identifier. Prior to installing an application, the system then checks the value of
|
||||||
<code>minSdkVersion</code> and allows the install only
|
<code>android:minSdkVersion</code> and allows the install only
|
||||||
if the referenced integer is less than or equal to the API Level integer stored
|
if the referenced integer is less than or equal to the API Level integer stored
|
||||||
in the system itself. </p>
|
in the system itself. </p>
|
||||||
|
|
||||||
@@ -51,10 +51,10 @@ general, you should compile your application against the lowest possible
|
|||||||
version of the platform that your application can support. After you determine
|
version of the platform that your application can support. After you determine
|
||||||
the lowest version, you should ensure that your application's manifest file
|
the lowest version, you should ensure that your application's manifest file
|
||||||
defines the API Level of the lowest compatible platform version in the
|
defines the API Level of the lowest compatible platform version in the
|
||||||
<code>minSdkVersion</code> attribute.
|
<code>android:minSdkVersion</code> attribute.
|
||||||
|
|
||||||
<p>After compiling your application, you should make sure to test it on the
|
<p>After compiling your application, you should make sure to test it on the
|
||||||
platform specified in the application's <code>minSdkVersion</code> attribute. To
|
platform specified in the application's <code>android:minSdkVersion</code> attribute. To
|
||||||
ensure forward-compatibility, you should also run the application on platforms
|
ensure forward-compatibility, you should also run the application on platforms
|
||||||
using a higher API Level than that used by your application. To run your
|
using a higher API Level than that used by your application. To run your
|
||||||
application against different platform versions in the emulator, you create an
|
application against different platform versions in the emulator, you create an
|
||||||
@@ -76,7 +76,7 @@ attribute looks like this: </p>
|
|||||||
|
|
||||||
<pre><manifest>
|
<pre><manifest>
|
||||||
...
|
...
|
||||||
<uses-sdk minSdkVersion="3" />
|
<uses-sdk android:minSdkVersion="3" />
|
||||||
...
|
...
|
||||||
</manifest></pre>
|
</manifest></pre>
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ important if your application uses <a href="#apichange">APIs or system features
|
|||||||
introduced in Android 1.5</a>. </p>
|
introduced in Android 1.5</a>. </p>
|
||||||
|
|
||||||
<p>If your application uses APIs introduced in Android 1.5 but does not
|
<p>If your application uses APIs introduced in Android 1.5 but does not
|
||||||
declare <code><uses-sdk minSdkVersion="3" /></code>, then it will
|
declare <code><uses-sdk android:minSdkVersion="3" /></code>, then it will
|
||||||
run properly on Android 1.5 devices but <em>not</em> on Android 1.0
|
run properly on Android 1.5 devices but <em>not</em> on Android 1.0
|
||||||
devices. In the latter case, the application will crash at runtime when
|
devices. In the latter case, the application will crash at runtime when
|
||||||
it tries to use the Android 1.5 APIs.</p>
|
it tries to use the Android 1.5 APIs.</p>
|
||||||
@@ -108,7 +108,7 @@ new APIs introduced since Android 1.0, you can remove the attribute or
|
|||||||
set it to "1". However,
|
set it to "1". However,
|
||||||
before publishing your application, you must make sure to compile your
|
before publishing your application, you must make sure to compile your
|
||||||
application against the Android library that corresponds to the application's
|
application against the Android library that corresponds to the application's
|
||||||
<code>minSdkVeresion</code> value.</p>
|
<code>android:minSdkVeresion</code> value.</p>
|
||||||
|
|
||||||
<h2 id="apps">Built-in Applications</h2>
|
<h2 id="apps">Built-in Applications</h2>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user