Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 1 | page.title=Android 3.0 Platform Preview |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 2 | @jd:body |
| 3 | |
| 4 | <div id="qv-wrapper"> |
| 5 | <div id="qv"> |
| 6 | |
| 7 | <h2>In this document</h2> |
| 8 | <ol> |
| 9 | <li><a href="#api">API Overview</a></li> |
| 10 | <li><a href="#api-level">API Level</a></li> |
| 11 | <li><a href="#apps">Built-in Applications</a></li> |
| 12 | <li><a href="#locs">Locales</a></li> |
| 13 | <li><a href="#skins">Emulator Skins</a></li> |
| 14 | </ol> |
| 15 | |
| 16 | <h2>Reference</h2> |
| 17 | <ol> |
| 18 | <li><a |
| 19 | href="{@docRoot}sdk/api_diff/honeycomb/changes.html">API |
| 20 | Differences Report »</a> </li> |
| 21 | </ol> |
| 22 | |
| 23 | <h2>See Also</h2> |
| 24 | <ol> |
| 25 | <li><a href="{@docRoot}sdk/preview/start.html">Getting Started</a></li> |
| 26 | </ol> |
| 27 | |
| 28 | </div> |
| 29 | </div> |
| 30 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 31 | <p><em>API Level:</em> <b>Honeycomb</b></p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 32 | |
| 33 | <p>For developers, the Android 3.0 preview is available as a downloadable component for the |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 34 | Android SDK.</p> |
| 35 | |
| 36 | <p class="note"><strong>Note:</strong> Read the <a |
| 37 | href="{@docRoot}sdk/preview/start.html">Getting Started</a> guide for important information |
| 38 | about setting up your development environment and limitiations of the Android 3.0 preview.</p> |
| 39 | |
| 40 | |
| 41 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | <h2 id="#api">API Overview</h2> |
| 47 | |
| 48 | <p>The sections below provide a technical overview of what's new for developers in Android 3.0, |
| 49 | including new features and changes in the framework API since the previous version.</p> |
| 50 | |
| 51 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 52 | <h3>Fragments</h3> |
| 53 | |
| 54 | <p>A fragment is a new framework component that allows you to separate distinct elements of an |
| 55 | activity into self-contained modules that define their own UI and lifecycle. To create a |
| 56 | fragment, you must extend the {@link android.app.Fragment} class and implement several lifecycle |
| 57 | callback methods, similar to an {@link android.app.Activity}. You can then combine multiple |
| 58 | fragments in a single activity to build a multi-pane UI in which each |
| 59 | pane manages its own lifecycle and user inputs.</p> |
| 60 | |
| 61 | <p>You can also use a fragment without providing a UI and instead use the fragment as a worker |
| 62 | for the activity, such as to manage the progress of a download that occurs only while the |
| 63 | activity is running.</p> |
| 64 | |
| 65 | <p>Additionally:</p> |
| 66 | |
| 67 | <ul> |
| 68 | <li>Fragments are self-contained and can be reused in multiple activities</li> |
| 69 | <li>Fragments can be added, removed, replaced and animated inside the activity</li> |
| 70 | <li>Fragment can be added to a back stack managed by the activity, preserving the state of |
| 71 | fragments as they are changed and allowing the user to navigate backward through the different |
| 72 | states</li> |
| 73 | <li>By <a |
| 74 | href="{@docRoot}guide/topics/resources/providing-resources.html#AlternativeResources">providing |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 75 | alternative layouts</a>, you can mix and match fragments, based |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 76 | on the screen size and orientation</li> |
| 77 | <li>Fragments have direct access to their container activity and can contribute items to the |
| 78 | activity's Action Bar (discussed next)</li> |
| 79 | </ul> |
| 80 | |
| 81 | <p>To manage the fragments in your activity, you must use the {@link |
| 82 | android.app.FragmentManager}, which provides several APIs for interacting with fragments, such |
| 83 | as finding fragments in the activity and popping fragments off the back stack to restore them |
| 84 | after they've been removed or hidden.</p> |
| 85 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 86 | <p>To perform a transaction, such as add or remove a fragment, you must create a {@link |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 87 | android.app.FragmentTransaction}. You can then call methods such as {@link |
| 88 | android.app.FragmentTransaction#add add()} {@link android.app.FragmentTransaction#remove |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 89 | remove()}, or {@link android.app.FragmentTransaction#replace replace()}. Once you've applied all |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 90 | the changes you want to perform for the transaction, you must call {@link |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 91 | android.app.FragmentTransaction#commit commit()} and the system applies the fragment transaction to |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 92 | the activity.</p> |
| 93 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 94 | <p>For more information about using fragments, read the <a |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 95 | href="{@docRoot}guide/topics/fundamentals/fragments.html">Fragments</a> developer guide.</p> |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | <h3>Action Bar</h3> |
| 101 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 102 | <p>The Action Bar is a replacement for the traditional title bar at the top of the activity window. |
| 103 | It includes the application logo in the left corner and provides a new interface for items in the |
| 104 | activity's Options Menu. Additionally, the Action Bar allows you to:</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 105 | |
| 106 | <ul> |
| 107 | <li>Include select menu items directly in the Action Bar—as "action |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 108 | items"—for quick access to global user actions. |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 109 | <p>In your XML declaration for the menu item, include the attribute, {@code |
| 110 | android:showAsAction} with a value of {@code "ifRoom"}. When there's enough room in the |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 111 | Action Bar, the menu item appears directly in the bar. Otherwise, the item is placed in the |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 112 | overflow menu, revealed by the icon on the right side of the Action Bar.</p></li> |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 113 | |
| 114 | <li>Add interactive widgets to the Action Bar—as "action views"—such as a search box. |
| 115 | <p>In the XML for the menu item that should behave as an action view, include the {@code |
| 116 | android:actionViewLayout} attribute with a layout |
| 117 | resource for the action view or {@code android:actionViewClass} with the class name of the |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 118 | widget. Like action items, an action view appears only when there's room for it in the Action |
| 119 | Bar. If there's not enough room, it is placed in the overflow menu and behaves like a regular |
| 120 | menu item (for example, an item can provide a {@link android.widget.SearchView} as an action |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 121 | view, but when in the overflow menu, selecting the item activates the search dialog).</p></li> |
| 122 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 123 | <li>Add an action to the application logo when tapped and replace it with a custom logo |
| 124 | <p>The application logo is automatically assigned the {@code android.R.id.home} ID, |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 125 | which the system deliveres to your activity's {@link android.app.Activity#onOptionsItemSelected |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 126 | onOptionsItemSelected()} callback when tapped. Simply respond to this ID in your callback |
| 127 | method to perform an action such as go to your application's "home" activity.</p> |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 128 | <p>To replace the icon with a logo, </p></li> |
| 129 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 130 | <li>Add breadcrumbs for navigating backward through fragments</li> |
| 131 | <li>Add built in tabs and a drop-down list for navigation</li> |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 132 | <li>Customize the Action Bar themes and custom backgrounds</li> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 133 | </ul> |
| 134 | |
| 135 | <p>The Action Bar is standard for all applications that set either the <a |
| 136 | href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code |
| 137 | android:minSdkVersion}</a> or <a |
| 138 | href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code |
| 139 | android:targetSdkVersion}</a> to {@code "Honeycomb"}. (The "Honeycomb" API Level is provisional |
| 140 | and effective only while using the preview SDK—you must change it to the official API |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 141 | Level when the final SDK becomes available—see <a |
| 142 | href="{@docRoot}sdk/preview/start.html">Getting Started</a> for more information.)</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 143 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 144 | <p>For more information about the Action Bar, read the <a |
| 145 | href="{@docRoot}guide/topics/ui/actionbar.html">Action |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 146 | Bar</a> developer guide.</p> |
| 147 | |
| 148 | |
| 149 | |
| 150 | |
| 151 | <h3>System clipboard</h3> |
| 152 | |
| 153 | <p>Applications can now copy and paste data (beyond mere text) to and from the system-wide |
| 154 | clipboard. Clipped data can be plain text, a URI, or an intent.</p> |
| 155 | |
| 156 | <p>By providing the system access to your data in a content provider, the user can copy complex |
| 157 | content (such as an image or data structure) from your application and paste it into another |
| 158 | application that supports that type of content.</p> |
| 159 | |
| 160 | <p>To start using the clipboard, get the global {@link android.content.ClipboardManager} object |
| 161 | by calling {@link android.content.Context#getSystemService getSystemService(CLIPBOARD_SERVICE)}.</p> |
| 162 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 163 | <p>To create an item to attach to the clipboard ("copy"), you need to create a new {@link |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 164 | android.content.ClipData} object, which holds one or more {@link android.content.ClipData.Item} |
| 165 | objects, each describing a single entity. To create a {@link android.content.ClipData} object with |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 166 | just one {@link android.content.ClipData.Item}, you can use one of the helper methods, such as |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 167 | {@link android.content.ClipData#newPlainText newPlainText()}, {@link |
| 168 | android.content.ClipData#newUri newUri()}, and {@link android.content.ClipData#newIntent |
| 169 | newIntent()}, which each return a {@link android.content.ClipData} object pre-loaded with the |
| 170 | appropriate {@link android.content.ClipData.Item}.</p> |
| 171 | |
| 172 | <p>To add the {@link android.content.ClipData} to the clipboard, pass it to {@link |
| 173 | android.content.ClipboardManager#setPrimaryClip setPrimaryClip()} for your instance of {@link |
| 174 | android.content.ClipboardManager}.</p> |
| 175 | |
| 176 | <p>You can then acquire ("paste") a file from the clipboard by calling {@link |
| 177 | android.content.ClipboardManager#getPrimaryClip()} on the {@link |
| 178 | android.content.ClipboardManager}. Handling the {@link android.content.ClipData} you receive can |
| 179 | be more complicated and you need to be sure you can actually handle the data type.</p> |
| 180 | |
| 181 | <p>For more information, see the {@link android.content.ClipData} class reference. You can also see |
| 182 | an example implementation of copy and paste in the <a |
| 183 | href="{@docRoot}resources/samples/NotePad/index.html">NotePad</a> sample application.</p> |
| 184 | |
| 185 | |
| 186 | |
| 187 | |
| 188 | <h3>Drag and drop</h3> |
| 189 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 190 | <p>New APIs facilitate the ability for your application to implement drag and drop |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 191 | functionality in the UI.</p> |
| 192 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 193 | <p>To begin dragging content in your activity, call {@link android.view.View#startDrag startDrag()} |
| 194 | on a {@link android.view.View}, providing a {@link android.content.ClipData} object that represents |
| 195 | the information to drag, a {@link android.view.View.DragShadowBuilder} to facilitate the "shadow" |
| 196 | that the user sees while dragging, and an {@link java.lang.Object} that can share information about |
| 197 | the drag object with views that may receive the object.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 198 | |
| 199 | <p>To accept a drag object (receive the "drop") in a |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 200 | {@link android.view.View}, register the view with an {@link android.view.View.OnDragListener |
| 201 | OnDragListener} by |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 202 | calling {@link android.view.View#setOnDragListener setOnDragListener()}. When a drag event occurs on |
| 203 | the view, the system calls {@link android.view.View.OnDragListener#onDrag onDrag()} for the {@link |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 204 | android.view.View.OnDragListener OnDragListener}, which receives a {@link android.view.DragEvent} |
| 205 | describing the |
| 206 | type of event has occurred (such as "drag started", "drag ended", or "drop"). During a drag, the |
| 207 | system repeatedly calls {@link |
| 208 | android.view.View.OnDragListener#onDrag onDrag()} for the view underneath the drag, to |
| 209 | deliver a stream of events. The receiving view can |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 210 | inquire the event type delivered to {@link android.view.View#onDragEvent onDragEvent()} by calling |
| 211 | {@link android.view.DragEvent#getAction getAction()} on the {@link android.view.DragEvent}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 212 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 213 | <p>Although a drag event may carry a {@link android.content.ClipData} object, this is not related |
| 214 | to the system clipboard. The data being dragged is passed as a {@link |
| 215 | android.content.ClipData} object to {@link android.view.View#startDrag startDrag()} and the system |
| 216 | sends it to the receiving {@link android.view.View} in the {@link android.view.DragEvent} sent to |
| 217 | {@link android.view.View.OnDragListener#onDrag onDrag()}. A drag and drop operation should never |
| 218 | put the dragged data in the global system clipboard.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 219 | |
| 220 | |
| 221 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 222 | <h3>App widgets</h3> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 223 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 224 | <p>Android 3.0 supports several new widget classes for more interactive app widgets, including: |
| 225 | {@link |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 226 | android.widget.GridView}, {@link android.widget.ListView}, {@link android.widget.StackView}, {@link |
| 227 | android.widget.ViewFlipper}, and {@link android.widget.AdapterViewFlipper}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 228 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 229 | <p>You can also use the new {@link android.widget.RemoteViewsService} to populate |
| 230 | collection views such as ({@link android.widget.GridView}, {@link android.widget.ListView}, and |
| 231 | {@link android.widget.StackView}).</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 232 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 233 | <p>{@link android.appwidget.AppWidgetProviderInfo} also supports two new fields: {@link |
| 234 | android.appwidget.AppWidgetProviderInfo#autoAdvanceViewId} and {@link |
| 235 | android.appwidget.AppWidgetProviderInfo#previewImage}. The {@link |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 236 | android.appwidget.AppWidgetProviderInfo#autoAdvanceViewId} field lets you specify the view ID of the |
| 237 | app widget subview, which is auto-advanced by the app widget’s host. The |
| 238 | {@link android.appwidget.AppWidgetProviderInfo#previewImage} field specifies a preview of what the |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 239 | app widget looks like and is shown to the user from the widget picker. If this field is not |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 240 | supplied, the app widget's icon is used for the preview.</p> |
| 241 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 242 | <p>Android also provides a new widget preview tool ({@code WidgetPreview}), located in the SDK |
| 243 | tools, to take a screenshot of your app widget, which you can use when specifying the {@link |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 244 | android.appwidget.AppWidgetProviderInfo#previewImage} field.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 250 | <h3>Status bar notifications</h3> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 251 | |
| 252 | <p>The {@link android.app.Notification} APIs have been extended to support more content-rich status |
| 253 | bar notifications, plus a new {@link android.app.Notification.Builder} class allows you to easily |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 254 | control the notification properties.</p> |
| 255 | <p>New features include:</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 256 | <ul> |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 257 | <li>Support for a large icon in the notification, using {@link |
| 258 | android.app.Notification.Builder#setLargeIcon setLargeIcon()}. This is usually for |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 259 | social applications to show the contact photo of the person who is the source of the |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 260 | notification or for media apps to show an album thumbnail.</li> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 261 | <li>Support for custom layouts in the status bar ticker, using {@link |
| 262 | android.app.Notification.Builder#setTicker(CharSequence,RemoteViews) setTicker()}.</li> |
| 263 | <li>Support for custom notification layouts to include buttons with {@link |
| 264 | android.app.PendingIntent}s, for more interactive notification widgets |
| 265 | (such as to control ongoing music in the background).</li> |
| 266 | </ul> |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 271 | <h3>Content loaders</h3> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 272 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 273 | <p>New framework APIs facilitate asynchronous loading of data using the {@link |
| 274 | android.content.Loader} class. You can use it in combination with UI components such as views and |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 275 | fragments to dynamically load data from worker threads. The {@link |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 276 | android.content.CursorLoader} subclass is specially designed to help do so for data queried from |
| 277 | a {@link android.content.ContentResolver}.</p> |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 | <h3>Bluetooth A2DP and headset APIs</h3> |
| 284 | |
| 285 | <p>Android now includes APIs for applications to verify the state of connected Bluetooth A2DP and |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 286 | headset profile devices. For example, applications can identify when a Bluetooth headset is |
| 287 | connected for listening to music and notify the user as appropriate. Applications can also receive |
| 288 | broadcasts for vendor specific AT commands and notify the user about the state of the connected |
| 289 | device, such as when the connected device's battery is low.</p> |
| 290 | |
| 291 | <p>You can initialize the respective {@link android.bluetooth.BluetoothProfile} by calling {@link |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 292 | android.bluetooth.BluetoothAdapter#getProfileProxy getProfileProxy()} with either the {@link |
| 293 | android.bluetooth.BluetoothProfile#A2DP} or {@link android.bluetooth.BluetoothProfile#HEADSET} |
| 294 | profile constant and a {@link android.bluetooth.BluetoothProfile.ServiceListener} to receive |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 295 | callbacks when the Bluetooth client is connected or disconnected.</p> |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | <h3>Animation framework</h3> |
| 301 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 302 | <p>An all new flexible animation framework allows you to animate arbitrary properties of any object |
| 303 | (View, Drawable, Fragment, Object, or anything else). It allows you to define many aspects of an |
| 304 | animation, such as:</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 305 | <ul> |
| 306 | <li>Duration</li> |
| 307 | <li>Repeat amount and behavior</li> |
| 308 | <li>Type of time interpolation</li> |
| 309 | <li>Animator sets to play animations together, sequentially, or after specified delays</li> |
| 310 | <li>Frame refresh delay</li> |
| 311 | </ul> |
| 312 | |
| 313 | <p>You can define these animation aspects, and others, for an object's int, float, and hexadecimal |
| 314 | color values, by default. To animate any other type of value, you tell the system how to calculate |
| 315 | the values for that given type, by implementing the {@link android.animation.TypeEvaluator} |
| 316 | interface.</p> |
| 317 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 318 | <p>There are two animators you can use to animate values of a property: {@link |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 319 | android.animation.ValueAnimator} and {@link android.animation.ObjectAnimator}. The {@link |
| 320 | android.animation.ValueAnimator} computes the animation values, but is not aware of the specific |
| 321 | object or property that is animated as a result. It simply performs the calculations, and you must |
| 322 | listen for the updates and process the data with your own logic. The {@link |
| 323 | android.animation.ObjectAnimator} is a subclass of {@link android.animation.ValueAnimator} and |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 324 | allows you to set the object and property to animate, and it handles all animation work. |
| 325 | That is, you give the {@link android.animation.ObjectAnimator} the object to animate, the |
| 326 | property of the object to change over time, and a set of values to apply to the property over |
| 327 | time in order to animate it, then start the animation.</p> |
| 328 | |
| 329 | <p>Additionally, the {@link android.animation.LayoutTransition} class enables automatic transition |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 330 | animations for changes you make to your activity layout. To enable transitions for part of the |
| 331 | layout, create a {@link android.animation.LayoutTransition} object and set it on |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 332 | any {@link android.view.ViewGroup} by calling {@link |
| 333 | android.view.ViewGroup#setLayoutTransition setLayoutTransition()}. This causes default |
| 334 | animations to run whenever items are added to or removed from the group. To specify custom |
| 335 | animations, call {@link android.animation.LayoutTransition#setAnimator setAnimator()} on the {@link |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 336 | android.animation.LayoutTransition} and provide a custom {@link android.animation.Animator}, |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 337 | such as a {@link android.animation.ValueAnimator} or {@link android.animation.ObjectAnimator} |
| 338 | discussed above.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 339 | |
| 340 | <p>For more information, see the <a |
| 341 | href="{@docRoot}guide/topics/graphics/animation.html">Animation</a> developer guide.</p> |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 346 | <h3>Extended UI framework</h3> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 347 | |
| 348 | <ul> |
| 349 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 350 | <li><b>Multiple-choice selection for ListView and GridView</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 351 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 352 | <p>New {@link android.widget.AbsListView#CHOICE_MODE_MULTIPLE_MODAL} mode for {@link |
| 353 | android.widget.AbsListView#setChoiceMode setChoiceMode()} allows for selecting multiple items |
| 354 | from a {@link android.widget.ListView} and {@link android.widget.GridView}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 355 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 356 | <p>To enable multiple-choice selection, call {@link |
| 357 | android.widget.AbsListView#setChoiceMode setChoiceMode(CHOICE_MODE_MULTIPLE_MODAL)} and register a |
| 358 | {@link android.widget.AbsListView.MultiChoiceModeListener MultiChoiceModeListener} with {@link |
| 359 | android.widget.AbsListView#setMultiChoiceModeListener setMultiChoiceModeListener()}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 360 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 361 | <p>When the user performs a long-press on an item, the Action Bar switches to the Multi-choice |
| 362 | Action Mode. The system notifies the {@link android.widget.AbsListView.MultiChoiceModeListener |
| 363 | MultiChoiceModeListener} when items are selected by calling {@link |
| 364 | android.widget.AbsListView.MultiChoiceModeListener#onItemCheckedStateChanged |
| 365 | onItemCheckedStateChanged()}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 366 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 367 | <p>For an example of multiple-choice selection, see the <a |
| 368 | href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/view/List15.html">List15. |
| 369 | java</a> |
| 370 | class in the API Demos sample application.</p> |
| 371 | </li> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 372 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 373 | |
| 374 | <li><b>New APIs to transform views</b> |
| 375 | |
| 376 | <p>New APIs allow you to easily apply 2D and 3D transformations to {@link |
| 377 | android.view.View}s in your activity layout, using a set of object properties that define the view's |
| 378 | layout position, orientation, transparency and more.</p> |
| 379 | <p>New methods to set properties include: {@link android.view.View#setAlpha setAlpha()}, {@link |
| 380 | android.view.View#setBottom setBottom()}, {@link android.view.View#setLeft setLeft()}, {@link |
| 381 | android.view.View#setRight setRight()}, {@link android.view.View#setBottom setBottom()}, {@link |
| 382 | android.view.View#setPivotX setPivotX()}, {@link android.view.View#setPivotY setPivotY()}, {@link |
| 383 | android.view.View#setRotationX setRotationX()}, {@link android.view.View#setRotationY |
| 384 | setRotationY()}, {@link android.view.View#setScaleX setScaleX()}, {@link android.view.View#setScaleY |
| 385 | setScaleY()}, {@link android.view.View#setAlpha setAlpha()}, and others.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 386 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 387 | <p>Some methods also have a corresponding XML attribute that you can specify in your layout |
| 388 | file. Available attributes include: {@code translationX}, {@code translationY}, {@code rotation}, |
| 389 | {@code rotationX}, {@code rotationY}, {@code scaleX}, {@code scaleY}, {@code transformPivotX}, |
| 390 | {@code transformPivotY}, and {@code alpha}.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 391 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 392 | <p>Using some of these new properties in combination with the new animation framework (discussed |
| 393 | previously), you can easily create some fancy animations to your views. For example, to rotate a |
| 394 | view on its y-axis, supply {@link android.animation.ObjectAnimator} with the {@link |
| 395 | android.view.View}, the "rotationY" property, and the values to use:</p> |
| 396 | <pre> |
| 397 | ObjectAnimator animator = ObjectAnimator.ofFloat(myView, "rotationY", 0, 360); |
| 398 | animator.setDuration(2000); |
| 399 | animator.start(); |
| 400 | </pre> |
| 401 | </li> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 402 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 403 | |
| 404 | <li><b>New holographic themes</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 405 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 406 | <p>The standard system widgets and overall look have been redesigned for use on larger screens |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 407 | such as tablets and incorporate the new "holographic" UI theme. The system applies these styles |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 408 | using the standard <a href="{@docRoot}guide/topics/ui/themes.html">style and theme</a> system. |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 409 | Any application that targets the Android 3.0 platform inherits the holographic theme by default. |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 410 | However, if your application also applies its own styles, then it will override the holographic |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 411 | theme, unless you update your styles to inherit the holographic theme.</p> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 412 | |
| 413 | <p>To apply the holographic theme to individual activities or to inherit them in your own theme |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 414 | definitions, use one of several new {@link android.R.style#Theme_Holo Theme.Holo} |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 415 | themes.</p> |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 416 | </li> |
| 417 | |
| 418 | |
| 419 | <li><b>New widgets</b> |
| 420 | |
| 421 | <ul> |
| 422 | <li>{@link android.widget.AdapterViewAnimator} |
| 423 | <p>Base class for an {@link android.widget.AdapterView} that performs animations when switching |
| 424 | between its views.</p></li> |
| 425 | |
| 426 | <li>{@link android.widget.AdapterViewFlipper} |
| 427 | <p>Simple {@link android.widget.ViewAnimator} that animates between two or more views that have |
| 428 | been added to it. Only one child is shown at a time. If requested, it can automatically flip |
| 429 | between |
| 430 | each child at a regular interval.</p></li> |
| 431 | |
| 432 | <li>{@link android.widget.CalendarView} |
| 433 | <p>Allows users to select dates from a calendar and you can configure the range of dates |
| 434 | available. A user can select a date by tapping on it and can scroll and fling |
| 435 | the calendar to a desired date.</p></li> |
| 436 | |
| 437 | <li>{@link android.widget.ListPopupWindow} |
| 438 | <p>Anchors itself to a host view and displays a list of choices, such as for a list of |
| 439 | suggestions when typing into an {@link android.widget.EditText} view.</p></li> |
| 440 | |
| 441 | <li>{@link android.widget.NumberPicker} |
| 442 | <p>Enables the user to select a number from a predefined range. The widget presents an |
| 443 | input field and up and down buttons for selecting a number. Touching the input field shows a |
| 444 | scroll wheel that allows the user to scroll through values or touch again to directly edit the |
| 445 | current value. It also allows you to map from positions to strings, so that |
| 446 | the corresponding string is displayed instead of the position index.</p></li> |
| 447 | |
| 448 | <li>{@link android.widget.PopupMenu} |
| 449 | <p>Displays a {@link android.view.Menu} in a modal popup window that's anchored to a view. The |
| 450 | popup |
| 451 | appears below the anchor view if there is room, or above it if there is not. If the IME (soft |
| 452 | keyboard) is visible, the popup does not overlap it until it is touched.</p></li> |
| 453 | |
| 454 | <li>{@link android.widget.SearchView} |
| 455 | <p>Provides a search box that works in conjunction with a search provider (in the same manner as |
| 456 | the traditional <a href="{@docRoot}guide/topics/search/search-dialog.html">search dialog</a>). |
| 457 | It |
| 458 | also displays recent query suggestions or custom suggestions as configured by the search |
| 459 | provider. This widget is particularly useful for offering search in the Action Bar.</p></li> |
| 460 | |
| 461 | <li>{@link android.widget.StackView} |
| 462 | <p>A view that displays its children in a 3D stack and allows users to discretely swipe through |
| 463 | the |
| 464 | children.</p></li> |
| 465 | |
| 466 | </ul> |
| 467 | </li> |
| 468 | |
| 469 | </ul> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 470 | |
| 471 | |
| 472 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 473 | |
| 474 | <!-- |
| 475 | <h3>WebKit</h3> |
| 476 | <h3>JSON (utilities)</h3> |
| 477 | --> |
| 478 | |
| 479 | |
| 480 | <h3>Graphics</h3> |
| 481 | |
| 482 | <ul> |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 483 | <li><b>Hardware accelerated 2D graphics</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 484 | |
| 485 | <p>You can now enable the OpenGL renderer for your application by setting {@code |
| 486 | android:hardwareAccelerated="true"} in your manifest element's <a |
| 487 | href="{@docRoot}guide/topics/manifest/application-element.html">{@code <application>}</a> |
| 488 | element or for individual <a |
| 489 | href="{@docRoot}guide/topics/manifest/activity-element.html">{@code <activity>}</a> |
| 490 | elements.</p> |
| 491 | |
| 492 | <p>This flag helps applications by making them draw faster. This results in smoother animations, |
| 493 | smoother scrolling, and overall better performance and response to user interaction.</p></li> |
| 494 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 495 | |
| 496 | <li><b>View support for hardware and software layers</b> |
| 497 | |
| 498 | <p>By default, a {@link android.view.View} has no layer specified. You can specify that the |
| 499 | view be backed by either a hardware or software layer, specified by values {@link |
| 500 | android.view.View#LAYER_TYPE_HARDWARE} and {@link android.view.View#LAYER_TYPE_SOFTWARE}, using |
| 501 | {@link android.view.View#setLayerType setLayerType()} or the <a |
| 502 | href="{@docRoot}reference/android/view/View.html#attr_android:layerType">{@code layerType}</a> |
| 503 | attribute.</p> |
| 504 | <p>A hardware layer is backed by a hardware specific texture (generally Frame Buffer Objects or |
| 505 | FBO on OpenGL hardware) and causes the view to be rendered using Android's hardware rendering |
| 506 | pipeline, but only if hardware acceleration is turned on for the view hierarchy. When hardware |
| 507 | acceleration is turned off, hardware layers behave exactly as software layers.</p> |
| 508 | <p>A software layer is backed by a bitmap and causes the view to be rendered using Android's |
| 509 | software rendering pipeline, even if hardware acceleration is enabled. Software layers should be |
| 510 | avoided when the affected view tree updates often. Every update will require to re-render the |
| 511 | software layer, which can potentially be slow.</p> |
| 512 | <p>For more information, see the {@link android.view.View#LAYER_TYPE_HARDWARE} and {@link |
| 513 | android.view.View#LAYER_TYPE_SOFTWARE} documentation.</p> |
| 514 | </li> |
| 515 | |
| 516 | |
| 517 | <li><b>Renderscript 3D graphics engine</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 518 | |
| 519 | <p>Renderscript is a runtime 3D framework that provides both an API for building 3D scenes as well |
| 520 | as a special, platform-independent shader language for maximum performance. Using Renderscript, you |
| 521 | can accelerate graphics operations and data processing. Renderscript is an ideal way to create |
| 522 | high-performance 3D effects for applications, wallpapers, carousels, and more.</p></li> |
| 523 | </ul> |
| 524 | |
| 525 | |
| 526 | |
| 527 | |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 528 | <h3>Media</h3> |
| 529 | |
| 530 | |
| 531 | <ul> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 532 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 533 | <li><b>Time lapse video</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 534 | |
| 535 | <p>Camcorder APIs now support the ability to record time lapse video. The {@link |
| 536 | android.media.MediaRecorder#setCaptureRate setCaptureRate()} sets the rate at which frames |
| 537 | should be captured.</p></li> |
| 538 | |
Scott Main | 7afdaf0 | 2011-01-25 13:03:30 -0800 | [diff] [blame^] | 539 | <li><b>Texture support for image streams</b> |
| 540 | |
| 541 | <p>New {@link android.graphics.SurfaceTexture} allows you to capture an image stream as an OpenGL ES |
| 542 | texture. By calling {@link android.hardware.Camera#setPreviewTexture setPreviewTexture()} for your |
| 543 | {@link android.hardware.Camera} instance, you can specify the {@link |
| 544 | android.graphics.SurfaceTexture} upon which to draw video playback or preview frames from the |
| 545 | camera.</p></li> |
| 546 | |
| 547 | <li><b>HTTP Live streaming</b> |
| 548 | |
| 549 | <p>Applications can now pass an M3U playlist URL to the media framework to begin an HTTP Live |
| 550 | streaming session. The media framework supports most of the HTTP Live streaming specification, |
| 551 | including adaptive bit rate.</p></li> |
| 552 | |
| 553 | <li><b>EXIF data</b> |
| 554 | |
| 555 | <p>The {@link android.media.ExifInterface} includes new fields for photo aperture, ISO, and exposure |
| 556 | time.</p></li> |
| 557 | |
| 558 | <li><b>Camcorder profiles</b> |
| 559 | |
| 560 | <p>New {@link android.media.CamcorderProfile#hasProfile hasProfile()} method and several video |
| 561 | quality profiles (such as {@link android.media.CamcorderProfile#QUALITY_1080P}, {@link |
| 562 | android.media.CamcorderProfile#QUALITY_720P}, {@link |
| 563 | android.media.CamcorderProfile#QUALITY_CIF}, and others) allow you to determine camcorder |
| 564 | quality options.</p></li> |
| 565 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 566 | <li><b>Digital media file transfer</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 567 | |
| 568 | <p>The platform includes built-in support for Media/Picture Transfer Protocol (MTP/PTP) over USB, |
| 569 | which lets users easily transfer any type of media files between devices and to a host computer. |
| 570 | Developers can build on this support, creating applications that let users create or manage rich |
| 571 | media files that they may want to transfer or share across devices. </p></li> |
| 572 | |
Scott Main | d41ff8e | 2011-01-21 14:51:33 -0800 | [diff] [blame] | 573 | <li><b>Digital rights management (DRM)</b> |
Scott Main | 7fb538c | 2011-01-19 21:11:50 -0800 | [diff] [blame] | 574 | |
| 575 | <p>New extensible digital rights management (DRM) framework for checking and enforcing digital |
| 576 | rights. It's implemented in two architectural layers:</p> |
| 577 | <ul> |
| 578 | <li>A DRM framework API, which is exposed to applications and runs through the Dalvik VM for |
| 579 | standard applications.</li> |
| 580 | <li>A native code DRM manager that implements the framework API and exposes an interface for DRM |
| 581 | plug-ins to handle rights management and decryption for various DRM schemes.</li> |
| 582 | </ul> |
| 583 | |
| 584 | <p>For application developers, the framework offers an abstract, unified API that simplifies the |
| 585 | management of protected content. The API hides the complexity of DRM operations and allows a |
| 586 | consistent operation mode for both protected and unprotected content, and across a variety of DRM |
| 587 | schemes.</p> |
| 588 | |
| 589 | <p>For device manufacturers, content owners, and Internet digital media providers the DRM |
| 590 | framework?s plugin API provides a means of adding support for a DRM scheme of choice into the |
| 591 | Android system, for secure enforcement of content protection.</p> |
| 592 | |
| 593 | <p>The preview release does not provide any native DRM plug-ins for checking and enforcing digital |
| 594 | rights. However, device manufacturers may ship DRM plug-ins with their devices.</p> |
| 595 | |
| 596 | <p>You can find all of the DRM APIs in the {@link android.drm} package.</p></li> |
| 597 | |
| 598 | </ul> |
| 599 | |
| 600 | |
| 601 | |
| 602 | |
| 603 | |
| 604 | |
| 605 | |
| 606 | |
| 607 | <h2 id="api-level">API Level</h2> |
| 608 | |
| 609 | <p>The Android 3.0 platform delivers an updated version of |
| 610 | the framework API. Because this is a preview of the Android 3.0 API, it uses a provisional API |
| 611 | level of "Honeycomb", instead of an integer identifier, which will be provided when the final SDK |
| 612 | is made available and all APIs are final.</p> |
| 613 | |
| 614 | <p>To use APIs introduced in Android 3.0 in your application, you need compile the application |
| 615 | against the Android library that is provided in the Android 3.0 preview SDK platform and you must |
| 616 | declare this API Level in your manifest as <code>android:minSdkVersion="Honeycomb"</code>, in the |
| 617 | <code><uses-sdk></code> element in the application's manifest.</p> |
| 618 | |
| 619 | <p>For more information about using this provisional API Level and setting up your environment |
| 620 | to use the preview SDK, please see the <a href="{@docRoot}sdk/preview/start.html">Getting |
| 621 | Started</a> document.</p> |
| 622 | |
| 623 | |
| 624 | |
| 625 | |
| 626 | <h2 id="apps">Built-in Applications</h2> |
| 627 | |
| 628 | <p>The system image included in the downloadable platform provides these |
| 629 | built-in applications:</p> |
| 630 | |
| 631 | <table style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 632 | <tr> |
| 633 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 634 | <ul> |
| 635 | <li>Browser</li> |
| 636 | <li>Calculator</li> |
| 637 | <li>Camera</li> |
| 638 | <li>Clock</li> |
| 639 | <li>Contacts</li> |
| 640 | <li>Custom Locale</li> |
| 641 | <li>Dev Tools</li> |
| 642 | <li>Downloads</li> |
| 643 | <li>Email</li> |
| 644 | </ul> |
| 645 | </td> |
| 646 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
| 647 | <ul> |
| 648 | <li>Gallery</li> |
| 649 | <li>Music</li> |
| 650 | <li>Search</li> |
| 651 | <li>Settings</li> |
| 652 | <li>Spare Parts (developer app)</li> |
| 653 | <li>Speech Recorder</li> |
| 654 | </ul> |
| 655 | </td> |
| 656 | </tr> |
| 657 | </table> |
| 658 | |
| 659 | |
| 660 | <h2 id="locs" style="margin-top:.75em;">Locales</h2> |
| 661 | |
| 662 | <p>The system image included in the downloadable SDK platform provides a variety of |
| 663 | built-in locales. In some cases, region-specific strings are available for the |
| 664 | locales. In other cases, a default version of the language is used. The |
| 665 | languages that are available in the Android 3.0 system |
| 666 | image are listed below (with <em>language</em>_<em>country/region</em> locale |
| 667 | descriptor).</p> |
| 668 | |
| 669 | <table style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 670 | <tr> |
| 671 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 672 | <ul> |
| 673 | <li>Arabic, Egypt (ar_EG)</li> |
| 674 | <li>Arabic, Israel (ar_IL)</li> |
| 675 | <li>Bulgarian, Bulgaria (bg_BG)</li> |
| 676 | <li>Catalan, Spain (ca_ES)</li> |
| 677 | <li>Czech, Czech Republic (cs_CZ)</li> |
| 678 | <li>Danish, Denmark(da_DK)</li> |
| 679 | <li>German, Austria (de_AT)</li> |
| 680 | <li>German, Switzerland (de_CH)</li> |
| 681 | <li>German, Germany (de_DE)</li> |
| 682 | <li>German, Liechtenstein (de_LI)</li> |
| 683 | <li>Greek, Greece (el_GR)</li> |
| 684 | <li>English, Australia (en_AU)</li> |
| 685 | <li>English, Canada (en_CA)</li> |
| 686 | <li>English, Britain (en_GB)</li> |
| 687 | <li>English, Ireland (en_IE)</li> |
| 688 | <li>English, India (en_IN)</li> |
| 689 | <li>English, New Zealand (en_NZ)</li> |
| 690 | <li>English, Singapore(en_SG)</li> |
| 691 | <li>English, US (en_US)</li> |
| 692 | <li>English, Zimbabwe (en_ZA)</li> |
| 693 | <li>Spanish (es_ES)</li> |
| 694 | <li>Spanish, US (es_US)</li> |
| 695 | <li>Finnish, Finland (fi_FI)</li> |
| 696 | <li>French, Belgium (fr_BE)</li> |
| 697 | <li>French, Canada (fr_CA)</li> |
| 698 | <li>French, Switzerland (fr_CH)</li> |
| 699 | <li>French, France (fr_FR)</li> |
| 700 | <li>Hebrew, Israel (he_IL)</li> |
| 701 | <li>Hindi, India (hi_IN)</li> |
| 702 | </ul> |
| 703 | </td> |
| 704 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
| 705 | <li>Croatian, Croatia (hr_HR)</li> |
| 706 | <li>Hungarian, Hungary (hu_HU)</li> |
| 707 | <li>Indonesian, Indonesia (id_ID)</li> |
| 708 | <li>Italian, Switzerland (it_CH)</li> |
| 709 | <li>Italian, Italy (it_IT)</li> |
| 710 | <li>Japanese (ja_JP)</li> |
| 711 | <li>Korean (ko_KR)</li> |
| 712 | <li>Lithuanian, Lithuania (lt_LT)</li> |
| 713 | <li>Latvian, Latvia (lv_LV)</li> |
| 714 | <li>Norwegian bokmål, Norway (nb_NO)</li> |
| 715 | <li>Dutch, Belgium (nl_BE)</li> |
| 716 | <li>Dutch, Netherlands (nl_NL)</li> |
| 717 | <li>Polish (pl_PL)</li> |
| 718 | <li>Portuguese, Brazil (pt_BR)</li> |
| 719 | <li>Portuguese, Portugal (pt_PT)</li> |
| 720 | <li>Romanian, Romania (ro_RO)</li> |
| 721 | <li>Russian (ru_RU)</li></li> |
| 722 | <li>Slovak, Slovakia (sk_SK)</li> |
| 723 | <li>Slovenian, Slovenia (sl_SI)</li> |
| 724 | <li>Serbian (sr_RS)</li> |
| 725 | <li>Swedish, Sweden (sv_SE)</li> |
| 726 | <li>Thai, Thailand (th_TH)</li> |
| 727 | <li>Tagalog, Philippines (tl_PH)</li> |
| 728 | <li>Turkish, Turkey (tr_TR)</li> |
| 729 | <li>Ukrainian, Ukraine (uk_UA)</li> |
| 730 | <li>Vietnamese, Vietnam (vi_VN)</li> |
| 731 | <li>Chinese, PRC (zh_CN)</li> |
| 732 | <li>Chinese, Taiwan (zh_TW)</li> |
| 733 | </td> |
| 734 | </tr> |
| 735 | </table> |
| 736 | |
| 737 | <p class="note"><strong>Note:</strong> The Android platform may support more |
| 738 | locales than are included in the SDK system image. All of the supported locales |
| 739 | are available in the <a href="http://source.android.com/">Android Open Source |
| 740 | Project</a>.</p> |
| 741 | |
| 742 | <h2 id="skins">Emulator Skins</h2> |
| 743 | |
| 744 | <p>The downloadable platform includes the following emulator skin:</p> |
| 745 | |
| 746 | <ul> |
| 747 | <li> |
| 748 | WXGA (1280x800, medium density, xlarge screen) |
| 749 | </li> |
| 750 | </ul> |
| 751 | |
| 752 | <p>For more information about how to develop an application that displays |
| 753 | and functions properly on all Android-powered devices, see <a |
| 754 | href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple |
| 755 | Screens</a>.</p> |