INTRODUCTION TO
ANDROID AND ANDROID
STUDIO
By: Abdul Basit
Mobile OS
Android
Android Market Share
Features of Android
Android Versions
Use of Andriod
Android Studio
Tools of Android
Installation
Creating an App
Deploying the App
OUTLINE
2
OPERATING SYSTEM
An Operating System (OS) is an interface between a computer user and
computer hardware.
An OS is a software which performs all the basic tasks such as :
file management
memory management
process management
handling input and output,
controlling peripheral devices
MOBILE OS
• Android
• IOS
• BADA
(Samsung)
• Windows
Mobile
An OS much like Linux, windows or MAC to
control your mobile device.
• Blackberry
OS
• Palm OS
(PDA)
• Symbian
(Nokia)
ANDROID OS
Android is a mobile operating system
based on a modified version of the Linux
kernel and other opensource software.
It is primarily designed for touchscreen
mobile devices such as smartphones and
tablets.
It is also used in Android TVs, Wearables,
Automotive controls and Embedded
Systems
FUNDAMENTAL COMPONENTS OF ANDROID
Services
Service is a background
process that can run for a
long time.
Activities
An activity is a class that
represents a single screen. It
is like a Frame in AWT.
View
A view is the UI element such
as button, label, text field etc.
Anything that you see is a
view.
Content Providers
Content Providers are used
to share data between the
applications.
Intents
Intent is used to invoke
components. It is mainly
used to : Start the service,
Launch an activity etc
ANDROID
MARKET
SHARE
FEATURES OF
ANDROID
ANDROID VERSION HISTORY
Mobile Apps in Daily life Usage
Cell Phones Smartphones
Make Calls, send texts, take
photos and access the
internet
Make Calls, send texts, take
photos, play games, access
the internet and use other
interesting apps.
Cheaper alternative to a
smartphone.
May include a digital
assistant like Siri or Google
Now.
Straight forward, simple
interface
Sophisticated operating
system with customization
options.
HOW TO ACCESS ALL
THESE FUNCTIONS
ANDROID STUDIO
• Android Studio is the official
integrated development environment
(IDE) for Android application
development.
• It is based on the IntelliJ IDEA,
a Java integrated development
environment for software, and
incorporates its code editing and
developer tools.
FEATURES
ANDROID
STUDIO
• Code written in Java and Kotlin.
• Having intelligent code editor for code completion
• It provide tools to write our code and lay out of
the app on screen.
• Provides real time Preview as we create an app.
• Gives error correction and suggestion for code.
• The created app is tested on real device or
Android Studio Emulator for simulation.
Android Emulator
• The Android SDK includes a mobile device emulator — a virtual mobile device that runs
on your computer. The emulator lets you develop and test Android applications without
using a physical device.
AVD Manager
• The AVD Manager provides a graphical user interface in which you can create and
manage Android Virtual Devices (AVDs), which are required by the Android Emulator.
Optional Installation - Genymotion
• It is a fast third-party Android emulator for app testing and presentation on Windows
that can be used instead of the default Android emulator. In some cases, it's as good as
or better than developing on actual devices!
IMPORTANT TOOLS
INSTALLATION
• Java
1. Visit http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Install it.
• Android Studio
3. Visit http://developer.android.com/sdk/index.html
4. click the button Download Android Studio.
5. Accept terms, and click Download.
6. Run executable file of setup.
7. Follow the setup wizard to install Android Studio and any necessary SDK tools.
8. 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 indicating the correct location.
9. 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 FilesJavajdk1.7.0_45
10. The individual tools and other SDK packages are saved outside the Android Studio
application directory. If you need to access the tools directly, use a terminal to
navigate to the location where they are installed. For example:
11. Users<user>sdk
12. Android Studio is now ready and loaded with the Android developer tools, but there
are still a couple packages you should add to make your Android SDK complete.
• Run
1. Run Android Studio as Administrator.
2. Before you create new project, click Configure from splash screen. Click SDK
Manager.
3. Don’t select all. In bottom, in Extra section, select Intel x86 Emulator Accelerator.
4. Click Install button.
INSTALLATION CONT:
CREATING
ANDROID APP
• Creating Android app project in
Android Studio:
• Go to File→New Project
• Enter app, project name
• Choose package name using
“reverse URL” notation,
• Select APIs for app, then click
Next
PROVIDES TEMPLATES FOR
• Mobile
• Tablets
• Wears OS
• Android TV
• Automotive
• Android Things
CREATING
ANDROID APP
• Determine what kind
of Activity to create;
then click Next
• Enter information
about your Activity,
then click Finish
START CODING YOUR
APP IN JAVA OR KOTLIN
ANDROID APP FILES
• Java: Java class files containing app logic
• Res: Different resource files
• Anim: Animation resource files
• Drawable: Images
• Drawable-Xdpi: Images depending on screen density
• Layout: App layout files
• Menu: Layout menu files
• Values: Value files (strings, colors, arrays, etc)
• Values-vX: Value files depending on API level
• Values-Xdp: Value files depending on screen density
• XML: XML files (duh)
• AndroidManifest.xml: App metadata file
• build.gradle: Build related settings
DEPLOYING THE
APP
• Two choices for deployment:
• Real Android device
• Android virtual device
• Plug in your real device; otherwise, create an Android virtual
device
• Emulator is slow. Try Intel accelerated version, or perhaps
http://www.genymotion.com/
• Run the app: press “Run” button in toolbar
Introduction_to_android_and_android_studio

Introduction_to_android_and_android_studio

  • 1.
    INTRODUCTION TO ANDROID ANDANDROID STUDIO By: Abdul Basit
  • 2.
    Mobile OS Android Android MarketShare Features of Android Android Versions Use of Andriod Android Studio Tools of Android Installation Creating an App Deploying the App OUTLINE 2
  • 3.
    OPERATING SYSTEM An OperatingSystem (OS) is an interface between a computer user and computer hardware. An OS is a software which performs all the basic tasks such as : file management memory management process management handling input and output, controlling peripheral devices
  • 4.
    MOBILE OS • Android •IOS • BADA (Samsung) • Windows Mobile An OS much like Linux, windows or MAC to control your mobile device. • Blackberry OS • Palm OS (PDA) • Symbian (Nokia)
  • 5.
    ANDROID OS Android isa mobile operating system based on a modified version of the Linux kernel and other opensource software. It is primarily designed for touchscreen mobile devices such as smartphones and tablets. It is also used in Android TVs, Wearables, Automotive controls and Embedded Systems
  • 6.
    FUNDAMENTAL COMPONENTS OFANDROID Services Service is a background process that can run for a long time. Activities An activity is a class that represents a single screen. It is like a Frame in AWT. View A view is the UI element such as button, label, text field etc. Anything that you see is a view. Content Providers Content Providers are used to share data between the applications. Intents Intent is used to invoke components. It is mainly used to : Start the service, Launch an activity etc
  • 7.
  • 8.
  • 9.
  • 10.
    Mobile Apps inDaily life Usage Cell Phones Smartphones Make Calls, send texts, take photos and access the internet Make Calls, send texts, take photos, play games, access the internet and use other interesting apps. Cheaper alternative to a smartphone. May include a digital assistant like Siri or Google Now. Straight forward, simple interface Sophisticated operating system with customization options.
  • 11.
    HOW TO ACCESSALL THESE FUNCTIONS
  • 12.
    ANDROID STUDIO • AndroidStudio is the official integrated development environment (IDE) for Android application development. • It is based on the IntelliJ IDEA, a Java integrated development environment for software, and incorporates its code editing and developer tools.
  • 13.
    FEATURES ANDROID STUDIO • Code writtenin Java and Kotlin. • Having intelligent code editor for code completion • It provide tools to write our code and lay out of the app on screen. • Provides real time Preview as we create an app. • Gives error correction and suggestion for code. • The created app is tested on real device or Android Studio Emulator for simulation.
  • 14.
    Android Emulator • TheAndroid SDK includes a mobile device emulator — a virtual mobile device that runs on your computer. The emulator lets you develop and test Android applications without using a physical device. AVD Manager • The AVD Manager provides a graphical user interface in which you can create and manage Android Virtual Devices (AVDs), which are required by the Android Emulator. Optional Installation - Genymotion • It is a fast third-party Android emulator for app testing and presentation on Windows that can be used instead of the default Android emulator. In some cases, it's as good as or better than developing on actual devices! IMPORTANT TOOLS
  • 15.
    INSTALLATION • Java 1. Visithttp://www.oracle.com/technetwork/java/javase/downloads/index.html 2. Install it. • Android Studio 3. Visit http://developer.android.com/sdk/index.html 4. click the button Download Android Studio. 5. Accept terms, and click Download. 6. Run executable file of setup. 7. Follow the setup wizard to install Android Studio and any necessary SDK tools. 8. 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 indicating the correct location. 9. 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 FilesJavajdk1.7.0_45
  • 16.
    10. The individualtools and other SDK packages are saved outside the Android Studio application directory. If you need to access the tools directly, use a terminal to navigate to the location where they are installed. For example: 11. Users<user>sdk 12. Android Studio is now ready and loaded with the Android developer tools, but there are still a couple packages you should add to make your Android SDK complete. • Run 1. Run Android Studio as Administrator. 2. Before you create new project, click Configure from splash screen. Click SDK Manager. 3. Don’t select all. In bottom, in Extra section, select Intel x86 Emulator Accelerator. 4. Click Install button. INSTALLATION CONT:
  • 17.
    CREATING ANDROID APP • CreatingAndroid app project in Android Studio: • Go to File→New Project • Enter app, project name • Choose package name using “reverse URL” notation, • Select APIs for app, then click Next
  • 18.
    PROVIDES TEMPLATES FOR •Mobile • Tablets • Wears OS • Android TV • Automotive • Android Things
  • 19.
    CREATING ANDROID APP • Determinewhat kind of Activity to create; then click Next • Enter information about your Activity, then click Finish
  • 20.
    START CODING YOUR APPIN JAVA OR KOTLIN
  • 21.
    ANDROID APP FILES •Java: Java class files containing app logic • Res: Different resource files • Anim: Animation resource files • Drawable: Images • Drawable-Xdpi: Images depending on screen density • Layout: App layout files • Menu: Layout menu files • Values: Value files (strings, colors, arrays, etc) • Values-vX: Value files depending on API level • Values-Xdp: Value files depending on screen density • XML: XML files (duh) • AndroidManifest.xml: App metadata file • build.gradle: Build related settings
  • 22.
    DEPLOYING THE APP • Twochoices for deployment: • Real Android device • Android virtual device • Plug in your real device; otherwise, create an Android virtual device • Emulator is slow. Try Intel accelerated version, or perhaps http://www.genymotion.com/ • Run the app: press “Run” button in toolbar

Editor's Notes

  • #13 - Android was originally founded by Palo Alto of California in 2003. Google Purchased Android in 2005. OHA was held in 2007 First OS was developed in sept 2008