Introduction to
Android
Group members
Shazim Khan (BCSF13M006)
Seemal Afza (BCSF13M012)
_________________________
Done under supervision of Sir Bilal Shahzad
(Lecturer PUCIT)
Tools needed
Android studio
Java JDK
Android Emulator
PC with minimum 4GB RAM
Android device
Audience
This tutorial has been prepared for the beginners to help
them understand basic Android programming.
After completing this tutorial you will find yourself at a
moderate level of expertise in Android programming from
where you can take yourself to next levels.
Pre-requisites
Android programming is based on Java programming
language so if you have basic understanding on Java
programming then it will be a fun to learn Android
application development.
What is Android?
What is Android?
Android is an open source and Linux-basedOperating
Systemfor mobile devices such as smartphones and
tablet computers.
Android was developed by theOpen Handset
Alliance, led by Google, and other companies.
Android offers a unified approach to application
development for mobile devices which means
developers need only develop for Android, and their
applications should be able to run on different devices
powered by Android.
What is Android?
The source code for Android is available under free and
open source software licenses.
Google publishes most of the code under the Apache
License version 2.0 and the rest, Linux kernel changes,
under the GNU General Public License version 2.
Why Android?
Features for Android
Android is a powerful operating system competing with
Apple 4GS and supports great features. Few of them are
listed below:
Feature
Description
Beautiful UI
Android OS basic screen provides a beautiful and intuitive user
interface.
Connectivity
GSM/EDGE, IDEN, CDMA, EV-DO, UMTS, Bluetooth, Wi-Fi, LTE,
NFC and WiMAX.
Storage
Media support
Messaging
SQLite, a lightweight relational database, is used for data
storage purposes.
H.263, H.264, MPEG-4 SP, AMR, AMR-WB, AAC, HE-AAC, AAC
5.1, MP3, MIDI, Ogg Vorbis, WAV, JPEG, PNG, GIF, and BMP
SMS and MMS
Features for Android
Feature
Web browser
Multi-touch
Description
Based on the open-source WebKit layout engine, coupled with
Chrome's V8 JavaScript engine supporting HTML5 and CSS3.
Android has native support for multi-touch which was initially made
available in handsets such as the HTC Hero.
Multi-tasking
User can jump from one task to another and same time various
application can run simultaneously.
Resizable widgets
Widgets are resizable, so users can expand them to show more
content or shrink them to save space
Multi-Language
Supports single direction and bi-directional text.
GCM
Google Cloud Messaging (GCM) is a service that lets developers
send short message data to their users on Android devices, without
needing a proprietary sync solution.
Android Beam
A popular NFC-based technology that lets users instantly share, just
by touching two NFC-enabled phones together.
Wi-Fi Direct
A technology that lets apps discover and pair directly, over a highbandwidth peer-to-peer connection.
Android Applications
Android applications are usually developed in the Java
language using the Android Software Development Kit.
Once developed, Android applications can be packaged
easily and sold out either through a store such
asGoogle Play,SlideME,Opera Mobile
Store,Mobango,F-droidand theAmazon Appstore.
It's the largest installed base of any mobile platform and
growing fast. Every day more than 1 million new
Android devices are activated worldwide.
Categories of Android applications
History Of Android
Android application components
Additional components
Creating an android application
The first step is to create a simple Android Application
using Android Studio.
Follow the option
File -> New project ->Configure your new project
-> selct factor your application is run on -> add
activity ->Customise your activity ->and finally
selectfinishwizard from the wizard list.
Now name your application asHelloWorldusing the
wizard window as follows:
Creating an android application
Creating an android application
Creating an android application
Creating an android application
Anatomy of android application
Anatomy of android application
Anatomy of android application
Example of android Alert Dialogue
A Dialog is small window that prompts the user to a
decision or enter additional information.
Example of android Alert Dialogue
Example of android Alert Dialogue
THANK YOU