Download android app tutorial






















If you prefer staying in the main documentation, which makes it easy to branch off to other topics to learn more about specific aspects of building an app, you can proceed to the next lesson to build your first app. However, if you like to follow step-by-step tutorials that explain every step from beginning to end, then consider the Android Basics in Kotlin course.

Content and code samples on this page are subject to the licenses described in the Content License. App Basics. Build your first app. App resources. Resource types. App manifest file. Device compatibility. Multiple APK support. Tablets, large screens, and foldables. Build responsive UIs. Build for foldables. Getting started. Handling data. User input. Watch Face Studio. Health services. Creating watch faces. Android TV. Build TV Apps. Build TV playback apps. Help users find content on TV.

Recommend TV content. Watch Next. Build TV games. Build TV input services. TV Accessibility. Android for Cars. Build media apps for cars. Build navigation, parking, and charging apps for cars. Android Things. Supported hardware. Advanced setup. Build apps. Create a Things app. Communicate with wireless devices. Configure devices. Interact with peripherals.

Build user-space drivers. Manage devices. Create a build. Push an update. Chrome OS devices. App architecture. Architecture Components. UI layer libraries. View binding. Data binding library.

Lifecycle-aware components. Paging Library. Paging 2. Data layer libraries. How-To Guides. Advanced Concepts. Threading in WorkManager. App entry points. App shortcuts. App navigation. Navigation component. App links. Dependency injection.

Core topics. Download Not Available Your current device is not supported. Download options Release notes. More about the layout editor. More about the APK Analyzer. More about the emulator. More about the editor. More about the build tools. More about the profilers. Chrome OS For information on recommended devices and specifications, as well as Android Emulator support, visit chromeos.

Thank you for downloading Android Studio! Download Android Studio Introduction 1. Accepting this License Agreement 2. If you do not have the requisite authority, you may not accept the License Agreement or use the SDK on behalf of your employer or other entity. SDK License from Google 3. You are of course free to develop applications for other platforms, including non-compatible implementations of Android, provided that this SDK is not used for that purpose.

Google reserves all rights not expressly granted to you. Except to the extent required by applicable third party licenses, you may not copy except for backup purposes , modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the SDK or any part of the SDK.

You agree that Google may stop permanently or temporarily providing the SDK or any features within the SDK to you or to users generally at Google's sole discretion, without prior notice to you. Use of the SDK by You 4. If the users provide you with user names, passwords, or other login information or personal information, you must make the users aware that the information will be available to your application, and you must provide legally adequate privacy notice and protection for those users.

If your application stores personal or sensitive information provided by users, it must do so securely. If the user provides your application with Google Account information, your application may only use that information to access the user's Google Account when, and for the limited purposes for which, the user has given you permission to do so.

Your Developer Credentials 5. On the Welcome screen, click New Project. If you already have a project open, from the main menu select File New Project. In the New Project wizard, select Android on the left. Select the components you want to install. If you haven't installed the Android SDK tools before, all the required components will be preselected.

Review the installation settings and click Finish to start the download:. When all components have been downloaded and installed, click Finish :. On the last step, type HelloDroid as the project name and select Java as the language:. Now that we have created our first project, let's make sure it uses the correct JDK.

This view doesn't reflect the actual hierarchy of files on your disk - it is organized by modules and file types to ease navigation between source files of your project. Note that it hides project files and directories that you don't commonly use to see them, choose the Project view :. The app folder consists of the following subfolders:. Among other things, it declares the package name that serves as a unique identifier for your application and the minimum version of the Android SDK required for the device where the application will run.

It also declares the entry points of the application, along with permissions the application requires. For details, see App Manifest Overview. The Gradle Scripts folder contains all the project's build-related configuration files. Let us modify the auto-generated user interface and see how the application layout is rendered without running it on any physical or virtual device.

Note that since IntelliJ IDEA downloads the components required to render layout files, opening it may take a few seconds. By default, IntelliJ IDEA provides a graphical view of the layout file, but you can also switch to the source code view, or view the text and the graphical representation side by side - use the icons in the top-right corner of the UI Designer pane:.

This pane shows a rectangular canvas that is synchronized with the layout definition and with the Component Tree , so any changes to the canvas are reflected there accordingly. Normally, layout files have a layout manager as their root element for example, LinearLayout , FrameLayout , ConstraintLayout , and so on.

For the purpose of this tutorial, we are not going to modify it, but you can learn more about designing interfaces from Build a Responsive UI with ConstraintLayout. To eliminate distraction and only see how your layout is represented, click the Select Design Surface icon in the top-left corner and choose Design :. Now let's delete the existing text element. To do this, right-click the text label and choose Delete from the context menu. Now the UI layout looks like the following, and we are ready to start designing the layout of our application:.

For this tutorial, we've downloaded a Hello Droid image from the internet and saved it with the dimensions 50x50 px. In the Pick a Resource dialog that opens, choose the resource file you've added and click OK :. Next, we need to modify the default id of the imageView element to be able to reference it later.



0コメント

  • 1000 / 1000