API Demos tab1 tab2 tab3 App/Activity/Hello World Hello, World! App/Activity/Dialog Example of how you can use the Theme.Dialog theme to make an activity that looks like a dialog. App/Activity/Custom Dialog Example of how you can use a custom Theme.Dialog theme to make an activity that looks like a customized dialog, here with an ugly frame. App/Activity/Wallpaper App/Activity/Translucent Example of how you can make an activity have a translucent background, compositing over whatever is behind it. App/Activity/Translucent Blur App/Activity/Animation Press a button to launch an activity with a custom animation. Fade in Zoom in App/Activity/Save & Restore State Demonstration of saving and restoring activity state in onSaveInstanceState() and onCreate(). This text field saves its state: This text field does not save its state: Initial text. App/Activity/Persistent State Demonstration of persistent activity state with getPreferences(0).edit() and getPreferences(0). App/Activity/Receive Result Pick a result to send, or BACK to cancel. Corky Violet App/Activity/Forwarding Press the button to go forward to the next activity. This activity will stop, so you will no longer see it when going back. Go Press back button and notice we don\'t see the previous activity. App/Activity/Redirection Press the button to start the example. The next activity will conditionally redirect to another activity to collect data from the user. You now see the main activity running normally because the user text has been set to: Clear and Exit New Text Enter the text that will be used by the main activity. Press back to cancel. Apply App/Activity/Menu Open menu Close menu Toggle scenery Toggle dogs Long click for context menu Local service has started Local service has stopped Sample Local Service App/Service/Local Service Controller This demonstrates how you can implement persistent services that may be started and stopped as desired. Start Service Stop Service App/Service/Local Service Binding This demonstrates how you can connect with a persistent service. Notice how it automatically starts for you, and play around with the interaction between this and Local Service Controller. Bind Service Unbind Service Connected to local service Disconnected from local service Remote service has started Remote service has stopped Sample Remote Service App/Service/Remote Service Controller This demonstrates how you can implement persistent services running in a separate process that may be started and stopped as desired. App/Service/Remote Service Binding This demonstrates how you can connect with a persistent service running in another process. Use the kill button to see what happens when the process crashes. Kill Process Connected to remote service Disconnected from remote service Failure calling remote service Sample Service Start Arguments App/Service/Service Start Arguments Controller This demonstrates how service can be started with arguments, and run until all arguments are processed. Start \"One\" no redeliver Start \"Two\" no redeliver Start \"Three\" w/redeliver Start failed delivery Service created. Service destroyed. The one-shot alarm has gone off The repeating alarm has gone off App/Alarm/Alarm Controller This demonstrates how to schedule and handle one-shot and repeating alarms. One Shot Alarm Start Repeating Alarm Stop Repeating Alarm One-shot alarm will go off in 30 seconds based on the real time clock. Try changing the current time before then! Repeating alarm will go off in 15 seconds and every 15 seconds after based on the elapsed realtime clock Repeating alarm has been unscheduled The alarm service has started running The alarm service has finished running Sample Alarm Service App/Alarm/Alarm Service This demonstrates how to schedule a repeating alarm that will initiate a long-lived operation through a service. Start Alarm Service Stop Alarm Service Alarm service will run now, and then every 30 seconds for 15 seconds Alarm service has been unscheduled App/Instrumentation/Local Sample This demonstrates an Instrumentation that runs against one of our own classes. Note that this activity will be killed as a side-effect of starting instrumentation on its own application. App/Instrumentation/Contacts Filter This demonstrates an Instrumentation package that launches the contacts list and simulates user events to filter it. App/Activity/PickImage Pick Image Short notification This is a long notification. See, you might need a second more to read it. Sample Notification This service will update a status bar notification every 5 seconds for a minute App/Activity/Custom Title Left is best Right is always right Change Left Change Right App/Activity/Reorder Activities This is the first of a sequence of four Activities. A button on the fourth will use the Intent.FLAG_ACTIVITY_REORDER_TO_FRONT flag to bring the second of the activities to the front of the history stack. After that, proceeding back through the history should begin with the newly-frontmost second reorder activity, then the fourth, the third, and finally the first. Go to the second This is the second in a sequence of four Activities. Go to the third This is the third of a sequence of four Activities. Go to the fourth This is the last in a sequence of four Activities. Bring the second in front App/Menu/Inflate from XML Select a menu resource and press the menu key. If you want to choose another menu resource, go back and re-run this activity. App/Voice Recognition Content/Resources/Styled Text Initialized from a resource: Plain, bold, italic, bold-italic Assigned programmatically: Content/Assets/Read Asset Content/Resources/Themes Content/Resources/Resources App/Intents Example of launching various Intents. Get Music Short notification. Long notification. Short top. Short bottom. Short center. Short left. Short right. Custom Notification: With a Button Icons only Icons and marquee Use remote views in balloon Use default values where applicable :-) :-| :-( I am happy I am ok I am sad Clear notification Mood ring Sound Vibrate All App/Dialog OK Cancel dialog with a message OK Cancel dialog with a long message List dialog Single choice list Repeat alarm Progress dialog Text Entry dialog Name: Password: Lorem ipsum dolor sit aie consectetur adipiscing\nPlloaso mako nuto siwuf cakso dodtos anr koop. Header title Plloaso mako nuto siwuf cakso dodtos anr koop a cupy uf cak vux noaw yerw phuno. Whag schengos, uf efed, quiel ba mada su otrenzr.\n\nSwipontgwook proudgs hus yag su ba dagarmidad. Plasa maku noga wipont trenzsa schengos ent kaap zux comy.\n\nWipont trenz kipg naar mixent phona. Cak pwico siructiun ruous nust apoply tyu cak Uhex sisulutiun munityuw uw dseg OK Hide Something Cancel 34% 145/305 KB Header title List dialog Last most often Middle most often First most often Last least often Middle least often First least often Item 1 Item 2 Item 3 Browser visibility Refresh Bookmark Email visibility Reply Forward Jump Dive App/Preferences/1. Preferences from XML App/Preferences/2. Launching preferences App/Preferences/3. Preference dependencies App/Preferences/4. Default values App/Preferences/5. Preferences from code App/Preferences/6. Advanced preferences Launch PreferenceActivity The counter value is In-line preferences Dialog-based preferences Launch preferences Preference attributes Toggle preference This is a toggle button Checkbox preference This is a checkbox Yes or no preference An example that uses a yes/no dialog Do you like bananas? Edit text preference An example that uses an edit text dialog Enter your favorite animal List preference An example that uses a list dialog Choose one Screen preference Shows another screen of preferences Toggle preference Preference that is on the next screen but same hierarchy Intent preference Launches an Activity from an Intent My preference This is a custom counter preference Haunted preference I\'m on! :) I\'m off! :( Parent toggle This is visually a parent Child toggle This is visually a child Example preference dependency WiFi WiFi settings beta Default value App/Search/Invoke Search This activity shows a few different ways to invoke search, and inserts context-specific data for use by the search activity. Ways to invoke search onSearchRequested() Optional search parameters "Prefill query: " "App Data: " App/Search/Query Search Results This activity accepts query strings via the ACTION_SEARCH intent. In a full implementation, you would use the query string to select results from your data source, and present a list of those results to the user. "Query String: " "Query App Data: " "Activity Method: " Search Demo Search Demo Hint App/Launcher Shortcuts ApiDemos Sample This activity creates shortcuts for the launcher (home screen), and receives intents from those shortcuts. To try it, return to the launcher and long-press to create a shortcut. Intent: This activity demonstrates the voice recognition APIs. Speak! Results: Hide Me! Density: Unknown Screen Play Video from Local File Play Streaming Video Play Audio from Local File Play Audio from Resources Vertical Horizontal Top Middle Bottom Left Center Right From: To: Nothing\u2026 Snack "You have selected: " (none) Quit Ctrl-Q Quit Ctrl-Q Tracking on Tracking off from touch Rating: Use a better username and password, please. Please enter your password: Freedom is nothing else but a chance to be better. — Albert Camus Select an animation: Interpolators Type in the text field for auto-completion. Country: Give me Focus Country: Give me Focus Scroll Down To See Auto Complete Text View Button Country: Type in the text field for auto-completion. Name: You must have contacts in your address book. Typing * will show all of your contacts. Type in the text field for auto-completion. Typing * will show all of your contacts. Name: To: To Subject: Type in the text field for auto-completion by words. Country: Give me Focus Label: Button Bigger Label: Button Bigger Label: Button Bigger This example shows that baseline alignment has no effect when the layout gravity is set to center_vertical. Label: Button Bigger Label Again Label Me This is a\nmulti-line field. Baseline Aligned Big and bold Slim and slick. label Save Checkbox 1 Checkbox 2 RadioButton 1 RadioButton 2 Star Service not running placeholder left jump over me from L to R right left right top bottom Testing Login Bad Login Clear Credentials Username: Name: Last Name: Phone: Address: This is the top view. This is the middle view. It has more text in it than either the top view or the bottom view. This is the bottom view. This is the top view. This is the middle view. It has more text in it than either the top view or the bottom view. This is the bottom view. This is the top view. This is the middle view. It has more text in it than either the top view or the bottom view. This is the bottom view. Type Here: Cancel OK One Two This is the third one Four Not much text A lot more text than any of the other columns. This column should set the height of the linear layout. wrap_content A B C Button text1: This is some text. In this text are some things that are actionable. For instance, you can click on http://www.google.com and it will launch the web browser. You can click on google.com too. And, if you click on (415) 555-1212 it should dial the phone. text2: This is some other text, with a link specified via an <a> tag. Use a \"tel:\" URL to dial a phone number. New photo Clear photos No photos + - Default progress: Secondary progress: Show Progress Show Indeterminate Show Indeterminate No Title Toggle Indeterminate Breakfast Lunch Dinner All of them You have selected: (none) Clear Press the button to get an activity result, which will be displayed here: Get Result Top Bottom center_vertical Type here: Ok Cancel Text View 1 Button 1 Text View 2 Button 2 Text View 3 Button 3 Text View 4 Button 4 Text View 5 Button 5 Text View 6 Button 6 Text View 1 Button 1 Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. The Android platform is a software stack for mobile devices including an operating system, middleware and key applications. Developers can create applications for the platform using the Android SDK. Applications are written using the Java programming language and run on Dalvik, a custom virtual machine designed for embedded use which runs on top of a Linux kernel. If you want to know how to develop applications for Android, you\'re in the right place. This site provides a variety of documentation that will help you learn about Android and develop mobile applications for the platform. An early look at the the Android SDK is also available. It includes sample projects with source code, development tools, an emulator, and of course all the libraries you\'ll need to build an Android application. What would it take to build a better mobile phone? Color: Planet: Choose a color Choose a planet * *** Open\u2026 Ctrl-O Save As\u2026 (Save Document) Quit Application Ctrl-Shift-Q ~/path/to/file/to/open ~/.profile Open Save Save All * *** Open\u2026 Ctrl-O Save As\u2026 (Save Document) Too Long Quit Application Ctrl-Shift-Q Open\u2026 Ctrl-O Save As\u2026 Ctrl-Shift-S Open\u2026 Ctrl-O Save\u2026 Ctrl-S Save As\u2026 Ctrl-Shift-S Import\u2026 Export\u2026 Ctrl-E Quit\u2026 X Open\u2026 Ctrl-O Save\u2026 Ctrl-S Save As\u2026 Ctrl-Shift-S Import\u2026 Export\u2026 Ctrl-E Quit\u2026 X Open\u2026 Ctrl-O Save\u2026 Ctrl-S Save As\u2026 Ctrl-Shift-S Import\u2026 Export\u2026 Ctrl-E Toggle Checkmarks Toggle Shortcuts X Open\u2026 Ctrl-O Save\u2026 Ctrl-S Save As\u2026 Ctrl-Shift-S Import\u2026 Export\u2026 Ctrl-E Toggle Stretch Open\u2026 Ctrl-O Save\u2026 Ctrl-S Save As\u2026 Ctrl-Shift-S Save All And Do A Lot Of Stuff Just To Be Too Long For This Screen Because It Is A Test After All Ctrl-E Import\u2026 Export\u2026 Ctrl-E Toggle Shrink User Password Cancel Login A BB CCCC D E F G H View A View B View C Vis Invis Gone Show Notification this is the text of a previous message.\nkthx. meet u for dinner. cul8r this is the text of a previous message.\nkthx. meet u for dinner. cul8r Did you notice that the status bar icon disappeared? New text message: %0$s Do nothing Add Show Long Notification Show Short Notification This use the default marquee animation limit of 3 This will run the marquee animation once This will run the marquee animation forever Next change the time change the date Normal Right Small S R S L S U S D Toggle Sample action Start Stop Reset Set format string Clear format string Initial format: %s Vibrate Large image at normal size Large image scaled to at most 50x50 Large image scaled to at most 70x70 with padding Large image scaled to exactly 70x70 with padding Small image at normal size Small image scaled to at most 50x50 Small image scaled to at most 70x70 with padding Small image scaled to exactly 70x70 with padding textColorPrimary textColorSecondary textColorTertiary listSeparatorTextViewStyle This text will be shown before the date in our example widget. Oh hai %1$s: %2$s