The Android Open Source Project | c2ad241 | 2009-03-19 23:08:54 -0700 | [diff] [blame] | 1 | page.title=Android 1.5 Version Notes |
| 2 | sdk.version=1.5_r1 |
| 3 | sys.date=April 2009 |
| 4 | @jd:body |
| 5 | |
| 6 | <p> |
| 7 | <em>Date:</em> April 2009<br /> |
| 8 | <em>API Level:</em> <strong>3</strong></p> |
| 9 | |
| 10 | |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 11 | <p>This document provides version notes for the Android 1.5 system image included in the SDK. </p> |
| 12 | |
| 13 | <ul> |
| 14 | <li><a href="#overview">Overview</a> |
| 15 | <li><a href="#overview">External Libraries</a> |
| 16 | <li><a href="#comp">Device Compatibility</a> |
| 17 | <li><a href="#apps">Built-in Applications</a> |
| 18 | <li><a href="#locs">UI Localizations</a> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 19 | <li><a href="#features">New Features</a> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 20 | <li><a href="#api-changes">API Changes</a> |
| 21 | </ul> |
| 22 | |
| 23 | <h2 id="overview">Overview</h2> |
| 24 | |
| 25 | <p>The Android 1.5 system delivered in the SDK (as library and system image) is |
| 26 | the development counterpart to the Android 1.5 production system image, |
| 27 | deployable to Android-powered handsets starting in May 2009. The system is fully |
| 28 | compliant and includes no external libraries. This is the first version of the |
| 29 | Android SDK that does not include the Maps external library.</p> |
| 30 | |
| 31 | <p>The Android 1.5 system delivers an updated version of the framework |
| 32 | API. As with previous versions, the Android 1.5 API |
| 33 | is assigned an integer identifier — <strong>3</strong> — that is |
| 34 | stored in the system itself. This identifier, called the "API Level", allows the |
| 35 | system to correctly determine whether an application is compatible with |
| 36 | the system, prior to installing the application.</p> |
| 37 | |
| 38 | <p>Applications can reference a specific API Level value in their |
| 39 | manifest files, to indicate the minimum version of the Android system |
| 40 | required to run the application. To reference a minimum API Level, applications |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 41 | can add an <code>android:minSdkVersion</code> attribute in their manifest files. |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 42 | The value of the attribute is an integer corresponding to an API Level |
| 43 | identifier. Prior to installing an application, the system then checks the value of |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 44 | <code>android:minSdkVersion</code> and allows the install only |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 45 | if the referenced integer is less than or equal to the API Level integer stored |
| 46 | in the system itself. </p> |
| 47 | |
| 48 | <p>When you migrate your application to the new SDK, you will need to choose |
| 49 | the platform version against which you will compile your application. In |
| 50 | general, you should compile your application against the lowest possible |
| 51 | version of the platform that your application can support. After you determine |
| 52 | the lowest version, you should ensure that your application's manifest file |
| 53 | defines the API Level of the lowest compatible platform version in the |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 54 | <code>android:minSdkVersion</code> attribute. |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 55 | |
| 56 | <p>After compiling your application, you should make sure to test it on the |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 57 | platform specified in the application's <code>android:minSdkVersion</code> attribute. To |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 58 | ensure forward-compatibility, you should also run the application on platforms |
| 59 | using a higher API Level than that used by your application. To run your |
| 60 | application against different platform versions in the emulator, you create an |
| 61 | AVD for each platform version that you want to test. For more information about |
| 62 | AVDs, see <a href="{@docRoot}guide/developing/tools/avd.html">Android Virtual |
| 63 | Devices</a>. If you are using a physical device for testing, ensure that you |
| 64 | know the API Level of the Android platform it runs.</p> |
| 65 | |
| 66 | <p>If you build an application using the Android 1.5 library and your |
| 67 | application makes use of any APIs introduced in API Level 3, you <strong><span |
| 68 | style="color:red;">must</span></strong> set the |
| 69 | <code>android:minSdkVersion</code> attribute in the application's manifest to |
| 70 | "3". </p> |
| 71 | |
| 72 | <p>Specifically, you define the <code>android:minSdkVersion</code> |
| 73 | attribute in a <code><uses-sdk></code> element as a child of |
| 74 | <code><manifest></code> in the manifest file. When set, the |
| 75 | attribute looks like this: </p> |
| 76 | |
| 77 | <pre><manifest> |
| 78 | ... |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 79 | <uses-sdk android:minSdkVersion="3" /> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 80 | ... |
| 81 | </manifest></pre> |
| 82 | |
| 83 | <p>By setting <code>android:minSdkVersion</code> in this way, you ensure that |
| 84 | users will only be able to install your application if their devices are running |
| 85 | a compatible version of the Android platform. In turn, this ensures that your |
| 86 | application will function properly on their devices. This is especially |
| 87 | important if your application uses <a href="#apichange">APIs or system features |
| 88 | introduced in Android 1.5</a>. </p> |
| 89 | |
| 90 | <p>If your application uses APIs introduced in Android 1.5 but does not |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 91 | declare <code><uses-sdk android:minSdkVersion="3" /></code>, then it will |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 92 | run properly on Android 1.5 devices but <em>not</em> on Android 1.0 |
| 93 | devices. In the latter case, the application will crash at runtime when |
| 94 | it tries to use the Android 1.5 APIs.</p> |
| 95 | |
| 96 | <p>Conversely, if your application does not use any new APIs introduced in |
| 97 | Android 1.5, the application will in most cases function normally on devices |
| 98 | running a later version of the platform. However, if you have published |
| 99 | the application, you are strongly encouraged to install and test your |
| 100 | application on the Android 1.5 system image included in the SDK. This will |
| 101 | ensure a smooth transition for users, as they upgrade their devices to |
| 102 | the new version of the Android platform. </p> |
| 103 | |
| 104 | <p>Finally, if your application does not use any new APIs introduced since |
| 105 | Android 1.1, you can indicate general Android 1.1 compatibility by |
| 106 | setting the attribute to "2". If your application does not use any |
| 107 | new APIs introduced since Android 1.0, you can remove the attribute or |
| 108 | set it to "1". However, |
| 109 | before publishing your application, you must make sure to compile your |
| 110 | application against the Android library that corresponds to the application's |
Dirk Dougherty | 1432cd8 | 2009-05-01 10:02:17 -0700 | [diff] [blame] | 111 | <code>android:minSdkVeresion</code> value.</p> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 112 | |
| 113 | <h2 id="apps">Built-in Applications</h2> |
| 114 | |
| 115 | <p>The system image includes these built-in applications:</p> |
| 116 | <ul> |
| 117 | <li>Alarm Clock</li> |
| 118 | <li>Browser</li> |
| 119 | <li>Calculator</li> |
| 120 | <li>Camcorder</li> |
| 121 | <li>Camera</li> |
| 122 | <li>Contacts</li> |
| 123 | <li>Custom Locale (developer app)</li> |
| 124 | <li>Dev Tools (developer app)</li> |
| 125 | <li>Dialer</li> |
| 126 | <li>Email</li> |
| 127 | <li>Gallery</li> |
Dirk Dougherty | 4b50875 | 2009-07-16 08:51:33 -0700 | [diff] [blame] | 128 | <li>IME for Japanese text input</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 129 | <li>Messaging</li> |
| 130 | <li>Music</li> |
| 131 | <li>Settings</li> |
| 132 | <li>Spare Parts (developer app)</li> |
| 133 | </ul> |
| 134 | |
| 135 | <h2 id="locs">Locales</h2> |
| 136 | |
| 137 | <p>The system image provides a variety of built-in locales. In some cases, |
| 138 | region-specific strings are available for the locales. In other cases, |
| 139 | a default version of the language is used. The languages that will be |
| 140 | available in the Android 1.5 system image are listed below (with |
| 141 | <em>language</em>_<em>country/region</em> locale descriptor).</p> |
| 142 | |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 143 | <table style="border:0;"> |
| 144 | <tr> |
| 145 | <td style="border:0"> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 146 | <ul> |
| 147 | <li>Chinese, PRC (zh_CN)</li> |
| 148 | <li>Chinese, Taiwan (zh_TW)</li> |
| 149 | <li>Czech (cs_CZ)</li> |
| 150 | <li>Dutch, Netherlands (nl_NL)</li> |
| 151 | <li>Dutch, Belgium (nl_BE)</li> |
| 152 | <li>English, US (en_US)</li> |
| 153 | <li>English, Britain (en_GB)</li> |
| 154 | <li>English, Canada(en_CA)</li> |
| 155 | <li>English, Australia (en_AU)</li> |
| 156 | <li>English, New Zealand (en_NZ)</li> |
| 157 | <li>English, Singapore(en_SG)</li> |
| 158 | <li>French, France (fr_FR)</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 159 | <li>French, Belgium (fr_BE)</li> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 160 | </ul> |
| 161 | </td> |
| 162 | <td style="border:0;padding-left:5em;"> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 163 | <li>French, Canada (fr_CA)</li> |
| 164 | <li>French, Switzerland (fr_CH)</li> |
| 165 | <li>German, Germany (de_DE)</li> |
| 166 | <li>German, Austria(de_AT)</li> |
| 167 | <li>German, Switzerland (de_CH)</li> |
| 168 | <li>German, Liechtenstein (de_LI)</li> |
| 169 | <li>Italian, Italy (it_IT)</li> |
| 170 | <li>Italian, Switzerland (it_CH)</li> |
| 171 | <li>Japanese (ja_JP)</li> |
| 172 | <li>Korean (ko_KR)</li> |
| 173 | <li>Polish (pl_PL)</li> |
| 174 | <li>Russian (ru_RU)</li> |
| 175 | <li>Spanish (es_ES)</li> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 176 | </td> |
| 177 | </tr> |
| 178 | </table> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 179 | |
| 180 | <p>Localized UI strings match the locales that are displayable in |
| 181 | the emulator, accessible through the device Settings application.</p> |
| 182 | |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 183 | <h2 id="features">New Features</h2> |
| 184 | |
| 185 | <p>For a list of new system features, see the <a |
| 186 | href="{@docRoot}sdk/android-1.5-highlights.html">Android 1.5 Platform |
| 187 | Highlights</a> document.</p> |
| 188 | |
| 189 | <h2 id="api-changes">API Changes</h2> |
| 190 | |
| 191 | <h3>Overview</strong></h3> |
| 192 | |
| 193 | <ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 194 | <li>UI framework</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 195 | <ul> |
| 196 | <li>Framework for easier background/UI thread interaction</li> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 197 | <li>New {@link android.widget.SlidingDrawer SlidingDrawer} widget</li> |
| 198 | <li>New {@link android.widget.HorizontalScrollView HorizontalScrollview} widget</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 199 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 200 | </li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 201 | |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 202 | <li>AppWidget framework |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 203 | <ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 204 | <li>APIs for creating secure home screen {@link android.appwidget |
| 205 | AppWidgets}. For information about how to use AppWidgets, see the Developer's |
| 206 | Guide <a href="{@docRoot}guide/topics/appwidgets/index.html">AppWidgets</a> |
| 207 | documentation. Also see <a |
| 208 | href="http://android-developers.blogspot.com/2009/04/introducing-home-screen-widgets-and.html"> |
| 209 | Introducing home screen widgets and the AppWidget |
| 210 | framework</a> on the Android Developer's Blog.</li> |
| 211 | <li>APIs for populating {@link android.provider.LiveFolders Live Folders} |
| 212 | with custom content.</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 213 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 214 | </li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 215 | |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 216 | <li>Media framework</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 217 | <ul> |
| 218 | <li>Raw audio recording and playback APIs</li> |
| 219 | <li>Interactive MIDI playback engine</li> |
| 220 | <li>Video recording APIs for developers (3GP format)</li> |
| 221 | <li>Video and photo sharing Intents</li> |
| 222 | <li>Media search Intent</li> |
| 223 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 224 | </li> |
| 225 | |
| 226 | <li>Input Method framework |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 227 | <ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 228 | <li>{@link android.inputmethodservice.InputMethodService Input Method |
| 229 | Service} framework</li> |
| 230 | <li>Text-prediction engine</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 231 | <li>Ability to provide downloadable IMEs to users</li> |
| 232 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 233 | </li> |
| 234 | |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 235 | <li>Application-defined hardware requirements |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 236 | <p>Applications can now use a new element in their manifest files, <a |
| 237 | href="{@docRoot}guide/topics/manifest/uses-configuration-element.html"><uses- |
| 238 | configuration></a> to indicate to the Android system what hardware features |
| 239 | they require in order to function properly. For example, an application might |
| 240 | use the element to specify that it requires a physical keyboard or a particular |
| 241 | navigation device, such as a trackball. Prior to installing the application, the |
| 242 | Android system checks the attributes defined for the |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 243 | <code><uses-configuration></code> element and allows the installation to |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 244 | continue only if the required hardware is present.</p> |
| 245 | </li> |
| 246 | |
| 247 | <li>Speech recognition framework |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 248 | <ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 249 | <li>Support for using speech recognition libraries via Intent. See {@link |
| 250 | android.speech.RecognizerIntent RecognizerIntent}.</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 251 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 252 | </li> |
| 253 | |
| 254 | <li>Miscellaneous API additions |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 255 | <ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 256 | <li>LocationManager - Applications can get location change updates via |
| 257 | Intent</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 258 | <li>WebView - Touch start/end/move/cancel DOM event support</li> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 259 | <li>Redesigned {@link android.hardware.SensorManager Sensor Manager |
| 260 | APIs}</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 261 | <li>GLSurfaceView - convenience framework for creating OpenGL |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 262 | applications</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 263 | <li>Broadcast Intent for app update install succeeded - for smoother app |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 264 | upgrade experience</li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 265 | </ul> |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 266 | </li> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 267 | |
| 268 | </ul> |
| 269 | |
Dirk Dougherty | 6edea74 | 2009-04-24 11:32:25 -0700 | [diff] [blame] | 270 | <h3 id="api-diff">API Change Details</h3> |
Dirk Dougherty | fe1f789 | 2009-04-21 18:52:41 -0700 | [diff] [blame] | 271 | |
| 272 | <p>For a detailed view of API changes in this platform (API Level 3), see the <a |
| 273 | href="{@docRoot}sdk/api_diff/3/changes.html">API Differences Report</a>.</p> |
The Android Open Source Project | c2ad241 | 2009-03-19 23:08:54 -0700 | [diff] [blame] | 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | |
| 279 | |