Fundamentals. Android powers hundreds of millions of mobile devices in more than 190 countries around the world.
It's the largest installed base of any mobile platform and growing fast—every day another million users power up their Android devices for the first time and start looking for apps, games, and other digital content. Android gives you a world-class platform for creating apps and games for Android users everywhere, as well as an open marketplace for distributing to them instantly. Android growth in device activations Global partnerships and large installed base Building on the contributions of the open-source Linux community and more than 300 hardware, software, and carrier partners, Android has rapidly become the fastest-growing mobile OS. Every day more than 1 million new Android devices are activated worldwide. Android’s openness has made it a favorite for consumers and developers alike, driving strong growth in app consumption. Powerful development framework Developer Story: Robot Invader. Setup. Before installing Android Studio or the standalone SDK tools, you must agree to the following terms and conditions.
This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK. 1.2 "Android" means the Android software stack for devices, as made available under the Android Open Source Project, which is located at the following URL: as updated from time to time. 1.3 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States. 2. 2.1 In order to use the SDK, you must first agree to this License Agreement. 3. 4. 5. 6. 7.
Install. You should have already downloaded the Android SDK Tools.
(If you downloaded the ADT Bundle, you should instead read Setting Up the ADT Bundle.) The SDK Tools package is not the complete SDK environment. It includes only the core SDK tools, which you can use to download the rest of the SDK packages (such as the latest system image). Getting started on Windows Your download package is an executable file that starts an installer. Terms. An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map.
Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may be smaller than the screen and float on top of other windows. An application usually consists of multiple activities that are loosely bound to each other. Typically, one activity in an application is specified as the "main" activity, which is presented to the user when launching the application for the first time.
Each activity can then start another activity in order to perform different actions. When an activity is stopped because a new activity starts, it is notified of this change in state through the activity's lifecycle callback methods. Creating an Activity To create an activity, you must create a subclass of Activity (or an existing subclass of it). Native Apps. Before installing Android Studio or the standalone SDK tools, you must agree to the following terms and conditions.
Web Apps. Figure 1.
You can make your web content available to users in two ways: in a traditional web browser and in an Android application, by including a WebView in the layout. There are essentially two ways to deliver an application on Android: as a client-side application (developed using the Android SDK and installed on user devices in an APK) or as a web application (developed using web standards and accessed through a web browser—there's nothing to install on user devices). If you chose to provide a web-based app for Android-powered devices, you can rest assured that major web browsers for Android (and the WebView framework) allow you to specify viewport and style properties that make your web pages appear at the proper size and scale on all screen configurations. Best Practices. Android is designed to run on many different types of devices, from phones to tablets and televisions.
As a developer, the range of devices provides a huge potential audience for your app. In order for your app to be successful on all these devices, it should tolerate some feature variability and provide a flexible user interface that adapts to different screen configurations. To facilitate your effort toward that goal, Android provides a dynamic app framework in which you can provide configuration-specific app resources in static files (such as different XML layouts for different screen sizes). Android then loads the appropriate resources based on the current device configuration. So with some forethought to your app design and some additional app resources, you can publish a single application package (APK) that provides an optimized user experience on a variety of devices. What Does "Compatibility" Mean?