Download Android Unleashed Android App Development Course

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Android Unleashed
Android App Development Course
Class 1 – Introduction to Android & Android Studio
Presenter
Sudhanshu Gupta
www.softwaresunleashed.com
[email protected]
Table Of Contents

Introduction to Android.


Installing and Configuring Android Studio

Preparing for installation

Downloading Android Studio


Framework / Kernel.

Installing Android Studio

Running Android Studio for the first time
Configuring the Android SDK.
Exercise

Download Android Studio.

Download Android SDK.

Install Android Studio.

Configure Android Studio.
Introduction to Android

Android needs no introduction. 

Android is found active in almost 75% of the devices worldwide.

What is Android ??

Android is the world’s most popular “Open Source” operating system, for mobile
devices and tablets. Android has presence in Wearable devices (watches) & TV as
well.

Open Source means the source code is freely available to the developers to modify
and enhance the existing OS and its Applications.

Created by Google for developers ranging from Naïve to Professional.

Android is a platform that supports various applications, available through the
Android Play Store.

Android platform -- allows end users to develop, install and use their own
applications on top of the Android framework.
Why do I learn Android App
Development ??

Android powers more than Hundred Million devices across 190 countries. With
support for more than 300 Hardware, Software and Carrier partners, Android
is the fastest growing Mobile OS.

Android has more than 6,00,000+ applications on Google Play Store.

With such a huge potential of customer base, an innovative application
developed by you can make you millionaire over night.

Moreover, more and more companies these days are looking out for
candidates with Android App Development skill-set. So, acquiring this
skill-set, surely makes you stand ahead of the rest.
Any Pre-requisites ??
We are Looking for two essential

Basic understanding of OOPs , either in C++ or Java.
(Objects , Inheritance)
&

An Interest to Learn something New and Exciting.
Evolution of Android

Latest Android version as of this presentation is Lolipop v5.x
Evolution of Android

Latest Android version as of this presentation is Lollipop v5.x.x
Version No. Name
For:
1.0
Android Beta
Phone
1.1
Android
Phone
1.5
Cupcake
Phone
1.6
Donut
Phone
2.0/2.1
Eclair
Phone
2.2.x
Froyo
Phone
2.3.x
Gingerbread
Phone
3.x
Honeycomb
Tablet
4.0.x
Ice Cream Sandwich Phone and Tablet
4.1/4.2/4.3 Jelly Bean
Phone and Tablet
4.4
Kitkat
Phone and Tablet
5.x.x
Lolipop
Phone , Tablets, Wearables
Understanding Android App Development

To begin development on Android even at the application level, it is paramount to
understand the basic internal architecture of Android.(as shown below).

Android Application Layer

 Multiple Applications can sit on top of Android Software Stack.
 Android Software Stack 
 Apps are written in Java , and are installed directly without
integration with Android OS.

Application Framework offers APIs to developers to develop Android
application.
 Major entities : Activity Manager, Notification Manager, Views,
Resource Manager, Content Providers.

Libraries hold the Native C/C++ code offering similar functionalities.
 Major Native Libraries : Surface Manager, Media Framework,
System C Libraries, OpenGL libs, SQLite database.

Android Runtime aka Dalvik Virtual Machine (DVM) – A Bytecode
interpreter for embedded devices. Low on memory and comparatively
slower.

Kernel -- derived from Linux 2.6 compiled for mobile devices. Acts
as HAL between Android Software Stack and Device’s Hardware.
Android Studio !!

Android Studio is the official IDE (from Google) for Android application development,
based on IntelliJ IDEA (Intelligent Java IDE for Android).

“Android Studio” is to Android Applications , what “Developer Studio” is to Applications
for Desktop / PC world.
Features

Intelligent code editor

Flexible Gradle-based build system

Capable of advanced code completion

Frequent & Automatic update of SDK and Dev Tools!

Better than Eclipse!

Build Variants and Multiple APK file generation.

Code templates - to build common app features.

Rich Layout Editor – with drag n drop editing

‘Lint’ tools to catch performance, and other problems.

App signing capabilities.
Installing and Configuring Android Studio

System Requirements (before installing Android Studio)

Windows

Microsoft® Windows® 8/7/Vista/2003 (32 or 64-bit)

2 GB RAM minimum, 4 GB RAM recommended

400 MB hard disk space

At least 1 GB for Android SDK, emulator system images, and caches

1280 x 800 minimum screen resolution

Java Development Kit (JDK) 7. JAVA_HOME environment variable should be pointing to JDK7
home folder.
Downloading Android Studio

Visit the link for latest version of Android Studio ::
http://developer.android.com/sdk/index.html

Click on “Download Android Studio” button. (~900MB)

Accept the ‘Terms and Conditions’ check box and click on ‘Download Android
Studio’
Installing and Configuring Android Studio

To set up Android Studio on Windows:
1.
Launch the .exe file you just downloaded.
2.
Follow the setup wizard to install Android Studio and any necessary SDK tools.
3.
On some Windows systems, the launcher script does not find where Java is installed. If
you encounter this problem, you need to set an environment variable (JAVA_HOME)
indicating the correct location.
4.
Select Start menu > Computer > System Properties > Advanced System Properties.
Then open Advanced tab > Environment Variables and add a new system variable
JAVA_HOME that points to your JDK folder, for example C:\Program
Files\Java\jdk1.7.0_21
Installing and Configuring Android Studio

Android Studio is now ready, but couple of packages still needs to be added.

SDK separates tools, platforms, and other components into packages you can download
as needed using the Android SDK Manager.

To start adding packages, launch the Android SDK Manager in one of the following ways:

Click SDK Manager in the tool bar.

Or, Double-click the SDK Manager.exe file at the root of the Android SDK directory.
Configuring - Android SDK Manager

Be sure you have everything you need to get started by following these steps


Latest SDK tools

Tools  Android SDK Tools

Tools  Android Platform-Tools

Tools  Android Build-Tools

Android x.x.x (Latest Version)  SDK Platform

Android x.x.x (Latest Version)  ARM EABI v7a System Image (for emulator)
Support library for additional APIs
(Android Wear, TV, Google Cast, Navigation Drawer , Swipe Views)


Extras  Android Support Library

Extras  Android Support Repository
‘Google Play Services’ for even more APIs
(User Authentication, Google Maps, Google Cast, Games Achievements)


Extras  Google Repository

Extras  Google Play Services
Install the packages.

Once you've selected all the desired packages, continue to install

Click Install X packages.

In the next window, double-click each package name on the left to accept the license agreement for each.

Click Install. (This can take couple of hours depending on your Internet speed).
Configuring the Android SDK Manually
(If required)

An Essential feature of Android Studio that needs to be correctly configured is the Android SDK.

On the Welcome screen, navigate to Configure | Project Defaults | Project Structure. In Platform Settings , click on SDKs.

You can set the path to both SDK & JDK here. (If not already set by Android Studio.
Configuring the Android SDK Manually
(If required)
…contd.
Workout (Exercise) Time
Students are expected to finish the following task-items, before the next class:

Download Android Studio.

Download Android SDK.

Install Android Studio.

Configure Android Studio.
References for further reading

http://www.cprogramming.com/android/android_getting_started.html

[Book] Android Application Development (BlackBook)

http://developer.android.com/tools/studio/index.html

[Book] Android Studio Application Development – Belen Cruz Zapata