Unit-1.3

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

Welcome to

CSE3012 MOBILE APPLICATION DEVELOPMENT

G.GANESAN, B.E (CSE)., M.E (CSE)., M.S(IT).,(PhD)., MISTE.


Assistant Professor,
School of Computing Science and Engineering.
+91-9500234437
[email protected]
Android Introduction
What is Android?
• Android is a complete set of software for mobile devices such
as tablet computers, notebooks, smartphones, electronic
book readers, set-top boxes etc.
• It contains a linux-based Operating System, middleware and
key mobile applications.
• It can be thought of as a mobile operating system. But it is not
limited to mobile only. It is currently used in various devices
such as mobiles, tablets, televisions etc.

2
Android Introduction

3
Android Introduction

• Android is a software package and linux based operating


system for mobile devices such as tablet computers and
smartphones.
• It is developed by Google and later the OHA (Open Handset
Alliance). Java language is mainly used to write the android
code even though other languages can be used.
• The goal of android project is to create a successful real-world
product that improves the mobile experience for end users.
• There are many code names of android such as Lollipop,
Kitkat, Jelly Bean, Ice cream Sandwich, Froyo, Ecliar, Donut etc
which is covered in next page.
4
Android Introduction
What is Open Handset Alliance (OHA)

• It's a consortium of 84 companies such as google, samsung,


AKM, synaptics, KDDI, Garmin, Teleca, Ebay, Intel etc.

• It was established on 5th November, 2007, led by Google. It is


committed to advance open standards, provide services and
deploy handsets using the Android Plateform.

5
Android Introduction
Features of Android
• It is open-source.
• Anyone can customize the Android Platform.
• There are a lot of mobile applications that can be chosen
by the consumer.
• It provides many interesting features like weather details,
opening screen, live RSS (Really Simple Syndication) feeds
etc.
• It provides support for messaging services(SMS and
MMS), web browser, storage (SQLite), connectivity (GSM,
CDMA, Blue Tooth, Wi-Fi etc.), media, handset layout etc.
6
Android Platform
• Android is based on Linux with a set of native
core C/C++ libraries. Android applications are
written in Java.
• However, they run on Android's own Java
Virtual Machine, called Dalvik Virtual Machine
(DVM) (instead of JDK's JVM) which is optimized
to operate on the small and mobile devices.

7
Android Platform

8
Development environment
• In May 2017, Google announced support for a new Kotlin
programming language.
• As you are familiar with Java, you probably should start
in Java (many of the examples out there are written in
Java), and then move into Kotlin. Kotlin will not be
discussed in this article.
• The mother site for Android is https://www.android.com.
For programmers and developers, visit
https://developer.android.com to download the SDK.

9
Installing "Android Studio IDE" and
"Android SDK"
• Installing Android software is probably the most
challenging part of this project.

• It takes times - from 30 minutes to n hours to forever


- depending on your luck, your programming
knowledge, and your PC. You probably need a fairly
decent PC (with 8GB RAM) and 10GB of free disk
space to run the Android emulator!!!
• Running on "actual" Android phone/tablet requires
much lesser resources.
10
Step 0: Pre-Installation Check List
• Before installing Android SDK, you need to install Java Development Kit
(JDK). Read "How to install JDK". Ensure that your JDK is at or above 1.8.
You can check your JDK version with command "javac -version" (compiler)
and "java -version"(runtime).
• Uninstall older version(s) of "Android Studio" and "Android SDK", if any.
• The installation and many operations take a LONG time to complete. Do
NOT stare at your screen or at the ceiling. Browse through the "Android
for Developers" @ https://developer.android.com.
• We need to install two HUGE packages:
– Android Studio (IDE) (about 1.6 GB), which is an Integrated
Development Environment (IDE) based on IntelliJ (a popular Java IDE);
and
– Android SDK (Software Development Kit) (about 5 GB) for developing
and running Android apps.

11
Step 1: Install "Android Studio IDE"
.
• Reference: "Install Android Studio" @
https://developer.android.com/studio/install

12
Set-up Java Development Kit (JDK)
.
• You can download the latest version of Java JDK from Oracle's Java site −
Java SE Downloads. You will find instructions for installing JDK in
downloaded files, follow the given instructions to install and configure the
setup.
• Finally set PATH and JAVA_HOME environment variables to refer to the
directory that contains java and javac, typically java_install_dir/bin and
java_install_dir respectively.
• If you are running Windows and installed the JDK in C:\jdk1.8.0_102, you
would have to put the following line in your C:\autoexec.bat file.
• set PATH=C:\jdk1.8.0_102\bin;%PATH% set JAVA_HOME=C:\jdk1.8.0_102
Alternatively, you could also right-click on My Computer, select Properties,
then Advanced, then Environment Variables. Then, you would update the
PATH value and press the OK button.

13
Step 1: Install "Android Studio IDE"
.
• (For Windows)
• Check that environment variable JAVA_HOME is set to the JDK installation
directory via command "set JAVA_HOME".
• Check the system requirements for Android Studio/SDK @
https://developer.android.com/studio#Requirements e.g., For Windows
10, 8GB of RAM, 8GB of disk space, and 1280x800 minimum screen
resolution.
• Goto "Android Studio" under "Android Developers" @
https://developer.android.com/studio ⇒ Click "Download Android Studio"
(Android Studio Bumblebee 2021.x.x for Windows 64-bit (872MiB)) to
download the executable installer "android-studio-2021.x.x.xx-
windows.exe".

14
Step 1: Install "Android Studio IDE"
.
• Run the downloaded installer ⇒ You may watch a short video @
https://developer.android.com/studio/install.
– In "Choose Components", select "Android Studio" and "Android
Virtual Device" (space required: 2.7GB).
– In "Configuration Settings Install Location", accept the default "C:\
Program Files\Android\Android Studio".
– In "Choose Start Menu Folder", accept the default ⇒ Install.
– Launch Android Studio. Continue to Step 2.
• by default, the "Android Studio IDE" will be installed in "C:\Program Files\
Android\Android Studio", and the "Android SDK" in "c:\Users\username\
AppData\Local\Android\Sdk".

15
Step 1: Install "Android Studio IDE"
• (For macOS) .
• Check the system requirements @
https://developer.android.com/studio#Requirements e.g., macOS 10.14 or
higher, 8GB of RAM, 8GB of disk space, and 1280x800 minimum screen
resolution.
• Goto "Android Developer" under "Android Developers" @
https://developer.android.com/index.html ⇒ Click "Download Options" ⇒
For Intel processor, choose "Mac (64-bit) Android-studio-2021.x.x.xx-
mac.dmg (928MiB)"; for Apple M1 ARM processor, choose "Mac (64-bit,
ARM) Android-studio-2021.x.x.x-mac_arm.dmg (925MiB)".
• Launch the downloaded ".dmg" installation file ⇒ You may watch a short
video @ https://developer.android.com/studio/install.
• Drag and drop Android Studio into the "Applications" folder. Continue to
Step 2.
• The "Android SDK" will be installed in "~/Library/Android/sdk", where ~
denotes your home directory.
16
Step 1: Install "Android Studio IDE"
.
• Run the downloaded installer ⇒ You may watch a short video @
https://developer.android.com/studio/install.
– In "Choose Components", select "Android Studio" and "Android
Virtual Device" (space required: 2.7GB).
– In "Configuration Settings Install Location", accept the default "C:\
Program Files\Android\Android Studio".
– In "Choose Start Menu Folder", accept the default ⇒ Install.
– Launch Android Studio. Continue to Step 2.
• by default, the "Android Studio IDE" will be installed in "C:\Program Files\
Android\Android Studio", and the "Android SDK" in "c:\Users\username\
AppData\Local\Android\Sdk".

17
Step 2: Installing Android SDK
.
• This step takes a long time as you need to download about 3GB of zip
data, and expand to 5 GB of disk data, even for the minimum
configuration.
• Note: You can actually copy the SDK from another computer with the
same OS.

18
Step 2: Installing Android SDK
.
• (For Windows and macOS)
• Launch Android Studio ⇒ It will run the "setup" wizard for the first launch.
– Choose "do not import previous settings", and wait...
– In "Welcome", choose "next".
– In "Install Type", choose "Standard" (default).
– In "Select UI Theme", choose one that you like (or default).
– In "Verify Settings", take note of the SDK directory (by default @ c:\
Users\username\AppData\Local\Android\Sdk for Windows,
"~/Library/Android/sdk" for macOS):Setup Type: Standard SDK Folder:
C:\Users\xxxxxxxx\AppData\Local\Android\Sdk JDK Location: C:\
Program Files\Android\Android Studio\jre (Note: Gradle may be using
JAVA_HOME when invoked from command line. 1.74 MB

19
Step 2: Installing Android SDK
.
• Total Download Size: 1.75 GB
• SDK Components to Download: Android Emulator 329 MB
• Android SDK Build-Tools 32 54.1 MB
• Android SDK Build-Tools 32.1-rc1 52.1 MB
• Android SDK Platform 32 63 MB
• Android SDK Platform-Tools 11.9 MB
• Android SDK Tools 149 MB Intel x86
• Emulator Accelerator (HAXM installer) 500 KB SDK Patch Applier v4 1.74
MB
– In "License Agreement", Accept ALL items ⇒ Finish ⇒ Wait ⇒ Wait ⇒
Wait ⇒ Wait ⇒ Wait ⇒ Wait.

20
Step 2: Installing Android SDK
.
• (For Windows) Use "File Explorer" to check the SDK installed directory.
Take note that the "AppData" is a hidden directory. You need to choose
"View" ⇒ Uncheck "Hidden Items" to see this directory.
(For macOS) Use "Finder" to check the SDK installed directory.
• You can also use "Android Studio" to check the SDK packages installed by
selecting "More Actions" (or "Configure" in older versions, or "Tools") ⇒
"SDK Manager" ⇒ "Android SDK" (sidebar):
– Under "SDK Platforms" tab:
• Android API 32
– Under "SDK Tools" tab:
• Android SDK Build Tools 33-rc1
• Android Emulator
• Android SDK Platform-Tools (33.0.0)
• Intel x86 Emulator Accelerator (HAXM installer

21

You might also like