The document provides an overview of the installation and configuration of the Android Operating System, detailing the roles of essential components like JDK, JVM, JRE, and Android SDK. It outlines the benefits of the SDK, the use of Android Virtual Devices and Emulators for testing applications, and the steps to install Android Studio and SDK. Additionally, it includes a brief example of creating a 'Hello World' application in Android development.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
9 views
MAD Unit 2 Android Install and Configure
The document provides an overview of the installation and configuration of the Android Operating System, detailing the roles of essential components like JDK, JVM, JRE, and Android SDK. It outlines the benefits of the SDK, the use of Android Virtual Devices and Emulators for testing applications, and the steps to install Android Studio and SDK. Additionally, it includes a brief example of creating a 'Hello World' application in Android development.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 32
Unit-2.
Installation and configuration of Android
Operating System (OS) • An Operating System (OS) is an interface between a computer user and computer hardware. An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers. JDK: Java Development Kit • JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a software development environment which is used to develop java applications and applets. It physically exists. It contains JRE + development tools. • JDK is an implementation of any one of the below given Java Platforms released by Oracle corporation: 1. Standard Edition Java Platform 2. Enterprise Edition Java Platform 3. Micro Edition Java Platform JVM (Java Virtual Machine) • What it does • The JVM performs following operation: • Loads code • Verifies code • Executes code • Provides runtime environment. JRE • JRE is an acronym for Java Runtime Environment. It is also written as Java RTE. • The Java Runtime Environment is a set of software tools which are used for developing Java applications. • It is used to provide the runtime environment. • It is the implementation of JVM. • It contains a set of libraries + other files that JVM uses at runtime. Android SDK • Android SDK Tools is a component for the Android SDK. It includes development and debugging tools for Android. • It has – 1. Required libraries. 2. Debugger. 3. An emulator. 4. Relevant documentation for the Android API. 5. Sample source code. 6. Tutorials for the Android OS Benefits of SDK… • It provides a set of tools that allows developers to create a unique interface for the end- users of an app. • The developers are not required to perform basic tasks related to standard app features, such as data storage, location, user authorization, geofencing, and more. • It provides developers with robust functionalities such as code reuse, error handling, and consistent performance. • It ensures that the API provided is implemented correctly. • It also allows easier upgrade paths and the ability to handle deprecations for specific lower-level APIs. Android Virtual Device • It is used to test the android application without the need for mobile or tablet etc. It can be created in different configurations to emulate different types of real devices. • It is a configuration that defines the characteristics of an Android phone, tablet, Wear OS, Android TV, or Automotive OS device that you want to simulate in the Android Emulator. • The AVD Manager is an interface you can launch from Android Studio that helps you create and manage AVDs. • An AVD contains a hardware profile, system image, storage area, skin, and other properties. Android Emulator • We can use the Android emulator as a target device to execute and test our Android application on our PC. • The Android emulator provides almost all the functionality of a real device. • We can get the incoming phone calls and text messages. • It also gives the location of the device and simulates different network speeds. • Android emulator simulates rotation and other hardware sensors. It accesses the Google Play store, and much more. • Testing Android applications on emulator are sometimes faster and easier than doing on a real device. For example, we can transfer data faster to the emulator than to a real device connected through USB. • The Android emulator comes with predefined configurations for several Android phones, Wear OS, tablet, Android TV devices. Steps to install Android Studio and SDK • System Requirements • You will be delighted, to know that you can start your Android application development on either of the following operating systems − 1. Microsoft® Windows® 10/8/7/Vista/2003 (32 or 64-bit). 2. Java JDK5 or later version. 3. Java Runtime Environment (JRE) 6. 4. Android Studio. 5. Android SDK. Steps to install Android Studio and SDK • Go to developers site - https://developer.android.com/studio, and download the .exe file of android studio. • launch Android Studio.exe, • its time to mention JDK7 path or later version in android studio installer. • Need to check the components, which are required to create applications, below the image has selected Android Studio, Android SDK, Android Virtual Machine and performance(Intel chip). Need to specify the location of local machine path for Android studio and Android SDK, Need to specify the ram space for Android emulator by default it would take 512MB of local machine RAM. • After entered application name, it going to be called select the form factors your application runs on, here need to specify Minimum SDK, in our tutorial, I have declared as API23: Android 6.0(Mashmallow) The next level of installation should contain selecting the activity to mobile, it specifies the default layout for Applications Create Android Virtual Device -Launch Android AVD Manager Clicking AVD_Manager icon as shown below After Click on a virtual device icon, it going to be shown by default virtual devices which are present on your SDK, or else need to create a virtual device by clicking Create new Virtual device button Select Hardware page appears Verify Configuration page appears. • If your AVD is created successfully it means your environment is ready for Android application development. Hello Word Example • Before Writing a Hello word code, you must know about XML tags.To write hello word code, you should redirect to App>res>layout>Activity_main.xml • to run the program by clicking Run>Run App or else need to call shift+f10key. Finally, result should be placed at Virtual devices as shown below E n d o f Un i t-2 … . .T h a n ks .