Hours: 9
Installing the Android SDK and Prerequisites - Making an Android Project -
Making an Android Virtual Device (AVD) - Running a Program on an AVD -
Running a Program on an Android Device - Components of the SDK - The
Ingredients of an Android Application.
Android is an Operating System for mobile devices developed by Google in 2007,
which is built upon a Linux kernel. Android competes with Apple's iOS (for
iPhone/iPad), Microsoft's Windows Phone(?), and many other proprietary mobile
OSes.
The latest Android supports Phone/Tablet, TV, Wear (watch and glass),
Automobile (Android Auto) and Internet of things (IoT).
Android Platform
Android is based on Linux with a set of native core C/C++ libraries. Android
applications are written in Java/Kotlin. 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.
,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, Android
Training, API Guides and API documentation.
2. Installing "Android Studio IDE" and "Android SDK"
Installing Android software is probably the most challenging part of this project.
It takes times (from 60 minutes to n hours to forever) and lot of disk space (>10G)
- depending on your luck, your programming knowledge, and your PC power. You
probably need a fairly decent PC to run the Android emulator! The recommended
, requirements are: 16GB RAM, 16GB of free disk space and 1920x1080 screen
resolution. Running on real Android phone/tablet requires less resources.
Step 0: Pre-Installation Check List
1. Before installing Android Studio, you need to install Java Development
Kit (JDK). Read "How to install JDK". Ensure that your JDK is at or
above JDK 8. You can check your JDK version using commands "javac -
version" (compiler) and "java -version" (runtime) on CMD/Terminal.
2. Uninstall older version(s) of "Android Studio" and "Android SDK", if any.
3. The installation and many operations take a LONG time to complete. Do
NOT stare at your screen or ceiling. Browse through the "Android for
Developers" pages @ https://developer.android.com.
4. We need to install TWO HUGE packages:
o Android Studio IDE (2.5 GB), which is an Integrated Development
Environment (IDE) based on IntelliJ (a popular Java IDE); and
o Android SDK (Software Development Kit) (6-10 GB) for
developing and running Android apps.
Step 1: Install "Android Studio IDE"
Reference: "Install Android Studio"
@ https://developer.android.com/studio/install.
(For Windows)
1. Check that environment variable JAVA_HOME is set to the JDK
installation directory (e.g., "C:\Program Files\Java\jdk-21") via command
"set JAVA_HOME". Otherwise, follow the steps HERE.
2. Check the system requirements for Android Studio/SDK
@ https://developer.android.com/studio/install. Search for "System
Requirements", e.g., For Windows 10, 8GB of RAM, 8GB of disk space,
and 1280x800 minimum screen resolution. You should have enough space
on C drive. Insufficient space on C drive will take you many days to
install.