[Android] Introduction to Android Programming

Nikmesoft Ltd
Nikmesoft LtdVice President em Nikmesoft Ltd
Android Programming




   Lesson 1
Introduction

 NGUYEN The Linh
Android Programming


Contents

     1     Introduction to Android Programming

     2     Getting Started

     3     Programming Fundamentals


     4     Exercise 1




                             2
Android Programming


Introduction




   Introduction to Android Programming




                   3
Android Programming


Overview

 What is Android?
    A free, open source mobile platform
    A Linux-based, multiprocessing, multithreaded OS
    It’s not even limited to phones - you could
     a DVR, a handheld GPS, an MP3 player, etc.
 Android programming
    Based on Java
    Only one window
    Supporting different screen sizes
    Limited System Resources
                                4
Android Programming


Overview




               Android’s
               versions




           5
Android Programming


Overview

 Android’s versions with their releasing date
    Android 1.5 Cupcake – Release Date: April 30, 2009
    Android 1.6 Donut - Release Date: September 15, 2009
    Android 2.0/2.1 Éclair – Release Date: October 26, 2009
    Android 2.2 Froyo – Release Date: May 20, 2010
    Android 2.3 Gingerbread - Release Date: December 6, 2010
    Android 3.0 Honeycomb - Release Date: February 22, 2011
    Android 4.0 Ice Cream Sandwich - Release Date: October 19,
     2011
    Android 4.1 Jelly Bean - Release Date: July 9, 2012.
                               6
Android Programming


Overview

 Features
    Integrated browser based on the open source WebKit engine
    Optimized graphics powered by a custom 2D graphics library;
     3D graphics based on the OpenGL ES 1.0 specification
     (hardware acceleration optional).
    SQLite for structured data storage
    Media support for common audio, video, and still image formats
     (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
    Bluetooth, EDGE, 3G, and Wi-Fi (hardware dependent)
    Camera, GPS, compass, and accelerometer (hardware
     dependent)
                                7
Android Programming


Overview




                 Android
               Architecture




           8
Android Programming


Overview
                 ADT




 Android
 Project



           NDK
                 SDK

                   9
Android Programming


Overview

 What is ADT?
   Android Development Tools (ADT) is a plugin for the Eclipse IDE
    that is designed to give you a powerful, integrated environment
    in which to build Android applications.
   http://developer.android.com/tools/sdk/eclipse-adt.html
 What is SDK?
   The Android SDK provides you the API libraries and developer
    tools necessary to build, test, and debug apps for Android.
   http://developer.android.com/sdk/index.html


                                10
Android Programming


Overview

 What is NDK?
   The NDK is a toolset that allows you to implement parts of your
    app using native-code languages such as C and C++. For
    certain types of apps, this can be helpful so that you may reuse
    existing code libraries written in these languages and possibly
    increased performance.
   http://developer.android.com/tools/sdk/ndk/index.html




                                 11
Android Programming


Introduction




           Getting Started




                 12
Android Programming


Resources you will need

                                   Beginning Android 1
Window/Mac/Linux
                                   Beginning Android 2
  Android SDK
                                       Pro Android
     Eclipse
                                        (Apress)
      ADT


   Software                              Textbook
                    PC or Laptop
                   Android Phone


                      Hardware

                         13
Android Programming


Resources you will need




            http://developer.android.com




                        Web


                         14
Android Programming


Downloading and Installing

  Java
Platform
 (JDK)
           Android
            SDK

                          Eclipse


                                         ADT
                                        Plugin


                     15
Android Programming


Introduction




      Programming Fundamentals




                 16
Android Programming


Start a New Android Project




                    17
Android Programming


Start a New Android Project




                    18
Android Programming


Start a New Android Project

                     Notes
                        Build SDK
                            • Android 4.1 ( API 16)
                          Minimum Required SDK
                            • Android 2.2 (API 8)
                          Activity Name
                            • Name ‖Activity‖
                          Layout Name
                            • ―activity_‖ name



                    19
Android Programming


Project Structure

 Root Elements
    default.properties
    built.xml
    AndroidManifest.xml
    src/
    res/
    assets/
    bin/



                           20
Android Programming


Project Structure

 Res folder elements
    res/drawable/
    res/layout/
    res/menu/
    res/raw/
    res/values/
    res/xml/




                        21
Android Programming


Project Structure

 Inside the Manifest
    Here is where you declare what is inside your application—the
     activities, the services, and so on.
    When you create your application, you will get a starter manifest
     generated for you.
    Underneath the manifest element, you will find the following:
        •   uses-permission
        •   permission
        •   Instrumentation
        •   uses-library
        •   uses-sdk

                                  22
Android Programming


Project Structure




                    23
Android Programming


Running and Debugging

 Create a new Android Virtual Device (AVD) if you do
  not have any.
    From the Window menu, select AVD Manager
    From the AVD Manager window, click New button
    Input
      •   Name: API-16
      •   Target: Android 4.1 – API Level 16
      •   Size: 50 MB
      •   Built-in: Default (WVGA800)
    Click Create AVD button


                                       24
Android Programming


Running and Debugging

 From the Run menu, select Run or Debug
 If you’ve using the ADT plug-in, running or
  debugging your application:
    Compiles the current project and converts it to an Android
     executable (.dex).
    Packages the executable and external resources into Android
     package (.apk).
    Starts the emulator (if it’s not already running).
    Installs your application onto the emulator.
    Start your application.

                                25
Android Programming


Running and Debugging




                  26
Android Programming


Exercise 1

              Sizes and Colors
                 ―Android Programing‖: Text View, Black,
                  20dp, Center.
                 ―Username‖: Text Field, Plain Text,
                 ―Password‖: Text Field, Password
                 ―Login‖: Button, Center




                      27
Android Programming
1 de 28

Recomendados

Introduction to Android programming por
Introduction to Android programmingIntroduction to Android programming
Introduction to Android programmingSirwan Afifi
1.1K visualizações17 slides
Synapseindia android app programming por
Synapseindia android app programmingSynapseindia android app programming
Synapseindia android app programmingTarunsingh198
788 visualizações34 slides
Introduction to Android Programming por
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming'Zamin Mammadov
764 visualizações22 slides
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c... por
Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...pyingkodi maran
33 visualizações34 slides
Experience The Best Android Programming Training Here | LW India por
Experience The Best Android Programming Training Here | LW IndiaExperience The Best Android Programming Training Here | LW India
Experience The Best Android Programming Training Here | LW IndiaVishakhaTalmale
63 visualizações6 slides
Introduction to Android and Android Studio por
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android StudioSuyash Srijan
25.1K visualizações60 slides

Mais conteúdo relacionado

Mais procurados

Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh... por
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Jason Conger
1.4K visualizações55 slides
Mobile Application Development With Android por
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Androidguest213e237
21.5K visualizações29 slides
Flutter 2.2 version | skywave info solutions por
Flutter 2.2 version | skywave info solutionsFlutter 2.2 version | skywave info solutions
Flutter 2.2 version | skywave info solutionsSkywave Info Solutions
47 visualizações16 slides
Android game ppt por
Android game pptAndroid game ppt
Android game pptAbinashranaSingh
124 visualizações23 slides
Android installation guide por
Android installation guideAndroid installation guide
Android installation guidemagicshui
3.8K visualizações28 slides
Android study jams 1 por
Android study jams 1Android study jams 1
Android study jams 1NancyMariaAS
192 visualizações16 slides

Mais procurados(20)

Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh... por Jason Conger
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Building your Own Mobile Enterprise Application: It’s Not as Hard as You Migh...
Jason Conger1.4K visualizações
Mobile Application Development With Android por guest213e237
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
guest213e23721.5K visualizações
Flutter 2.2 version | skywave info solutions por Skywave Info Solutions
Flutter 2.2 version | skywave info solutionsFlutter 2.2 version | skywave info solutions
Flutter 2.2 version | skywave info solutions
Skywave Info Solutions47 visualizações
Android game ppt por AbinashranaSingh
Android game pptAndroid game ppt
Android game ppt
AbinashranaSingh124 visualizações
Android installation guide por magicshui
Android installation guideAndroid installation guide
Android installation guide
magicshui3.8K visualizações
Android study jams 1 por NancyMariaAS
Android study jams 1Android study jams 1
Android study jams 1
NancyMariaAS192 visualizações
Dload mobile development por Sayed Ahmed
Dload mobile developmentDload mobile development
Dload mobile development
Sayed Ahmed52 visualizações
Best Frameworks for Android App Development in 2022.pdf por Marie Weaver
Best Frameworks for Android App Development in 2022.pdfBest Frameworks for Android App Development in 2022.pdf
Best Frameworks for Android App Development in 2022.pdf
Marie Weaver96 visualizações
Flutter single codebase to build your dream application for i os and android por Concetto Labs
Flutter single codebase to build your dream application for i os and android Flutter single codebase to build your dream application for i os and android
Flutter single codebase to build your dream application for i os and android
Concetto Labs58 visualizações
Mobile development por Sayed Ahmed
Mobile developmentMobile development
Mobile development
Sayed Ahmed57 visualizações
Android por Shivam Tuteja
AndroidAndroid
Android
Shivam Tuteja1.8K visualizações
Android Internship report presentation por vinayh.vaghamshi _
Android Internship report presentationAndroid Internship report presentation
Android Internship report presentation
vinayh.vaghamshi _4K visualizações
Android development training por maheswarimahi18
Android development trainingAndroid development training
Android development training
maheswarimahi1855 visualizações
Android Studio Overview por Salim Hosen
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
Salim Hosen270 visualizações
What To Choose Between - Native App And Hybrid Mobile App por Mindbowser Inc
What To Choose Between - Native App And Hybrid Mobile AppWhat To Choose Between - Native App And Hybrid Mobile App
What To Choose Between - Native App And Hybrid Mobile App
Mindbowser Inc32 visualizações
Custom Android App Development – Web Animation India por Marion Welch
Custom Android App Development – Web Animation IndiaCustom Android App Development – Web Animation India
Custom Android App Development – Web Animation India
Marion Welch512 visualizações
Intro to Android Programming por Peter van der Linden
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
Peter van der Linden1.4K visualizações
Gdsc android introduction por ShambhaviGupta14
Gdsc android introductionGdsc android introduction
Gdsc android introduction
ShambhaviGupta14300 visualizações
Top reason to choose flutter app development por ElenorWisozk
Top reason to choose flutter app developmentTop reason to choose flutter app development
Top reason to choose flutter app development
ElenorWisozk60 visualizações
Flutter single codebase to build your dream application for i os and android por Heli Thakkar
Flutter single codebase to build your dream application for i os and android Flutter single codebase to build your dream application for i os and android
Flutter single codebase to build your dream application for i os and android
Heli Thakkar47 visualizações

Similar a [Android] Introduction to Android Programming

androidPramming.ppt por
androidPramming.pptandroidPramming.ppt
androidPramming.pptBijayKc16
3 visualizações28 slides
Android and its feature por
Android and its featureAndroid and its feature
Android and its featureShubham Kumar
116 visualizações19 slides
Notes Unit2.pptx por
Notes Unit2.pptxNotes Unit2.pptx
Notes Unit2.pptxMIT Autonomous Aurangabad
232 visualizações19 slides
My android por
My androidMy android
My androidPrince Bhanwra
249 visualizações26 slides
My android por
My androidMy android
My androidPrince Bhanwra
310 visualizações26 slides
International Journal of Engineering Research and Development por
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
318 visualizações5 slides

Similar a [Android] Introduction to Android Programming(20)

androidPramming.ppt por BijayKc16
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
BijayKc163 visualizações
Android and its feature por Shubham Kumar
Android and its featureAndroid and its feature
Android and its feature
Shubham Kumar116 visualizações
My android por Prince Bhanwra
My androidMy android
My android
Prince Bhanwra249 visualizações
My android por Prince Bhanwra
My androidMy android
My android
Prince Bhanwra310 visualizações
International Journal of Engineering Research and Development por IJERD Editor
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
IJERD Editor318 visualizações
Ii 1100-android development for fun and profit por Adrian Mikeliunas
Ii 1100-android development for fun and profitIi 1100-android development for fun and profit
Ii 1100-android development for fun and profit
Adrian Mikeliunas915 visualizações
Introduction To android por Zaid Khan
Introduction To androidIntroduction To android
Introduction To android
Zaid Khan203 visualizações
Introduction to Android App Development por Andri Yadi
Introduction to Android App DevelopmentIntroduction to Android App Development
Introduction to Android App Development
Andri Yadi2.5K visualizações
Android App Development Intro at ESC SV 2012 por Opersys inc.
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
Opersys inc.4.9K visualizações
Android summer training report por Shashendra Singh
Android summer training reportAndroid summer training report
Android summer training report
Shashendra Singh3.8K visualizações
Android summer training report por Shashendra Singh
Android summer training reportAndroid summer training report
Android summer training report
Shashendra Singh315 visualizações
Introduction to Mobile Development por Pragnesh Vaghela
Introduction to Mobile DevelopmentIntroduction to Mobile Development
Introduction to Mobile Development
Pragnesh Vaghela7K visualizações
Ii 1300-java essentials for android por Adrian Mikeliunas
Ii 1300-java essentials for androidIi 1300-java essentials for android
Ii 1300-java essentials for android
Adrian Mikeliunas1.4K visualizações
Software training report por Natasha Bains
Software training reportSoftware training report
Software training report
Natasha Bains97 visualizações
Android Development in a Nutshell por Aleix Solé
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
Aleix Solé2.8K visualizações
Android seminar report por dgpune
Android seminar reportAndroid seminar report
Android seminar report
dgpune17.4K visualizações
Spooky House Studios: Game development for smartwatches. Challenges and solut... por DevGAMM Conference
Spooky House Studios: Game development for smartwatches. Challenges and solut...Spooky House Studios: Game development for smartwatches. Challenges and solut...
Spooky House Studios: Game development for smartwatches. Challenges and solut...
DevGAMM Conference523 visualizações

Mais de Nikmesoft Ltd

[iOS] Networking por
[iOS] Networking[iOS] Networking
[iOS] NetworkingNikmesoft Ltd
839 visualizações32 slides
[iOS] Data Storage por
[iOS] Data Storage[iOS] Data Storage
[iOS] Data StorageNikmesoft Ltd
673 visualizações54 slides
[iOS] Multiple Background Threads por
[iOS] Multiple Background Threads[iOS] Multiple Background Threads
[iOS] Multiple Background ThreadsNikmesoft Ltd
1.1K visualizações64 slides
[iOS] Navigation por
[iOS] Navigation[iOS] Navigation
[iOS] NavigationNikmesoft Ltd
577 visualizações38 slides
[iOS] Basic UI Elements por
[iOS] Basic UI Elements[iOS] Basic UI Elements
[iOS] Basic UI ElementsNikmesoft Ltd
851 visualizações48 slides
[iOS] Introduction to iOS Programming por
[iOS] Introduction to iOS Programming[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS ProgrammingNikmesoft Ltd
1.7K visualizações36 slides

Mais de Nikmesoft Ltd(18)

[iOS] Networking por Nikmesoft Ltd
[iOS] Networking[iOS] Networking
[iOS] Networking
Nikmesoft Ltd839 visualizações
[iOS] Data Storage por Nikmesoft Ltd
[iOS] Data Storage[iOS] Data Storage
[iOS] Data Storage
Nikmesoft Ltd673 visualizações
[iOS] Multiple Background Threads por Nikmesoft Ltd
[iOS] Multiple Background Threads[iOS] Multiple Background Threads
[iOS] Multiple Background Threads
Nikmesoft Ltd1.1K visualizações
[iOS] Navigation por Nikmesoft Ltd
[iOS] Navigation[iOS] Navigation
[iOS] Navigation
Nikmesoft Ltd577 visualizações
[iOS] Basic UI Elements por Nikmesoft Ltd
[iOS] Basic UI Elements[iOS] Basic UI Elements
[iOS] Basic UI Elements
Nikmesoft Ltd851 visualizações
[iOS] Introduction to iOS Programming por Nikmesoft Ltd
[iOS] Introduction to iOS Programming[iOS] Introduction to iOS Programming
[iOS] Introduction to iOS Programming
Nikmesoft Ltd1.7K visualizações
[Android] Multimedia Programming por Nikmesoft Ltd
[Android] Multimedia Programming[Android] Multimedia Programming
[Android] Multimedia Programming
Nikmesoft Ltd3K visualizações
[Android] Android Animation por Nikmesoft Ltd
[Android] Android Animation[Android] Android Animation
[Android] Android Animation
Nikmesoft Ltd2.4K visualizações
[Android] 2D Graphics por Nikmesoft Ltd
[Android] 2D Graphics[Android] 2D Graphics
[Android] 2D Graphics
Nikmesoft Ltd1.6K visualizações
[Android] Services and Broadcast Receivers por Nikmesoft Ltd
[Android] Services and Broadcast Receivers[Android] Services and Broadcast Receivers
[Android] Services and Broadcast Receivers
Nikmesoft Ltd1.7K visualizações
[Android] Web services por Nikmesoft Ltd
[Android] Web services[Android] Web services
[Android] Web services
Nikmesoft Ltd2.5K visualizações
[Android] Multiple Background Threads por Nikmesoft Ltd
[Android] Multiple Background Threads[Android] Multiple Background Threads
[Android] Multiple Background Threads
Nikmesoft Ltd1.1K visualizações
[Android] Maps, Geocoding and Location-Based Services por Nikmesoft Ltd
[Android] Maps, Geocoding and Location-Based Services[Android] Maps, Geocoding and Location-Based Services
[Android] Maps, Geocoding and Location-Based Services
Nikmesoft Ltd1.7K visualizações
[Android] Data Storage por Nikmesoft Ltd
[Android] Data Storage[Android] Data Storage
[Android] Data Storage
Nikmesoft Ltd860 visualizações
[Android] Intent and Activity por Nikmesoft Ltd
[Android] Intent and Activity[Android] Intent and Activity
[Android] Intent and Activity
Nikmesoft Ltd1.5K visualizações
[Android] Widget Event Handling por Nikmesoft Ltd
[Android] Widget Event Handling[Android] Widget Event Handling
[Android] Widget Event Handling
Nikmesoft Ltd1.7K visualizações
[Android] Using Selection Widgets por Nikmesoft Ltd
[Android] Using Selection Widgets[Android] Using Selection Widgets
[Android] Using Selection Widgets
Nikmesoft Ltd1.3K visualizações
[Android] Basic Widgets and Containers por Nikmesoft Ltd
[Android] Basic Widgets and Containers[Android] Basic Widgets and Containers
[Android] Basic Widgets and Containers
Nikmesoft Ltd999 visualizações

Último

Digital Personal Data Protection (DPDP) Practical Approach For CISOs por
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOsPriyanka Aash
103 visualizações59 slides
State of the Union - Rohit Yadav - Apache CloudStack por
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStackShapeBlue
218 visualizações53 slides
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T por
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TShapeBlue
81 visualizações34 slides
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... por
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...ShapeBlue
59 visualizações13 slides
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... por
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...ShapeBlue
69 visualizações29 slides
Ransomware is Knocking your Door_Final.pdf por
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
81 visualizações46 slides

Último(20)

Digital Personal Data Protection (DPDP) Practical Approach For CISOs por Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash103 visualizações
State of the Union - Rohit Yadav - Apache CloudStack por ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue218 visualizações
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T por ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 visualizações
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... por ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue59 visualizações
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti... por ShapeBlue
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
DRaaS using Snapshot copy and destination selection (DRaaS) - Alexandre Matti...
ShapeBlue69 visualizações
Ransomware is Knocking your Door_Final.pdf por Security Bootcamp
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdf
Security Bootcamp81 visualizações
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... por ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue114 visualizações
Uni Systems for Power Platform.pptx por Uni Systems S.M.S.A.
Uni Systems for Power Platform.pptxUni Systems for Power Platform.pptx
Uni Systems for Power Platform.pptx
Uni Systems S.M.S.A.60 visualizações
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... por ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue97 visualizações
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... por TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc130 visualizações
MVP and prioritization.pdf por rahuldharwal141
MVP and prioritization.pdfMVP and prioritization.pdf
MVP and prioritization.pdf
rahuldharwal14139 visualizações
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... por James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 visualizações
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue por ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlueCloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
CloudStack Object Storage - An Introduction - Vladimir Petrov - ShapeBlue
ShapeBlue63 visualizações
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... por ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue113 visualizações
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue por ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlueVNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue134 visualizações
Igniting Next Level Productivity with AI-Infused Data Integration Workflows por Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software373 visualizações
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue por ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue149 visualizações
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ por ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - AmericConfidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue58 visualizações
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates por ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue178 visualizações
Network Source of Truth and Infrastructure as Code revisited por Network Automation Forum
Network Source of Truth and Infrastructure as Code revisitedNetwork Source of Truth and Infrastructure as Code revisited
Network Source of Truth and Infrastructure as Code revisited
Network Automation Forum49 visualizações

[Android] Introduction to Android Programming

  • 1. Android Programming Lesson 1 Introduction NGUYEN The Linh
  • 2. Android Programming Contents 1 Introduction to Android Programming 2 Getting Started 3 Programming Fundamentals 4 Exercise 1 2
  • 3. Android Programming Introduction Introduction to Android Programming 3
  • 4. Android Programming Overview  What is Android?  A free, open source mobile platform  A Linux-based, multiprocessing, multithreaded OS  It’s not even limited to phones - you could a DVR, a handheld GPS, an MP3 player, etc.  Android programming  Based on Java  Only one window  Supporting different screen sizes  Limited System Resources 4
  • 5. Android Programming Overview Android’s versions 5
  • 6. Android Programming Overview  Android’s versions with their releasing date  Android 1.5 Cupcake – Release Date: April 30, 2009  Android 1.6 Donut - Release Date: September 15, 2009  Android 2.0/2.1 Éclair – Release Date: October 26, 2009  Android 2.2 Froyo – Release Date: May 20, 2010  Android 2.3 Gingerbread - Release Date: December 6, 2010  Android 3.0 Honeycomb - Release Date: February 22, 2011  Android 4.0 Ice Cream Sandwich - Release Date: October 19, 2011  Android 4.1 Jelly Bean - Release Date: July 9, 2012. 6
  • 7. Android Programming Overview  Features  Integrated browser based on the open source WebKit engine  Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional).  SQLite for structured data storage  Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)  Bluetooth, EDGE, 3G, and Wi-Fi (hardware dependent)  Camera, GPS, compass, and accelerometer (hardware dependent) 7
  • 8. Android Programming Overview Android Architecture 8
  • 9. Android Programming Overview ADT Android Project NDK SDK 9
  • 10. Android Programming Overview  What is ADT?  Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications.  http://developer.android.com/tools/sdk/eclipse-adt.html  What is SDK?  The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android.  http://developer.android.com/sdk/index.html 10
  • 11. Android Programming Overview  What is NDK?  The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. For certain types of apps, this can be helpful so that you may reuse existing code libraries written in these languages and possibly increased performance.  http://developer.android.com/tools/sdk/ndk/index.html 11
  • 12. Android Programming Introduction Getting Started 12
  • 13. Android Programming Resources you will need Beginning Android 1 Window/Mac/Linux Beginning Android 2 Android SDK Pro Android Eclipse (Apress) ADT Software Textbook PC or Laptop Android Phone Hardware 13
  • 14. Android Programming Resources you will need http://developer.android.com Web 14
  • 15. Android Programming Downloading and Installing Java Platform (JDK) Android SDK Eclipse ADT Plugin 15
  • 16. Android Programming Introduction Programming Fundamentals 16
  • 17. Android Programming Start a New Android Project 17
  • 18. Android Programming Start a New Android Project 18
  • 19. Android Programming Start a New Android Project  Notes  Build SDK • Android 4.1 ( API 16)  Minimum Required SDK • Android 2.2 (API 8)  Activity Name • Name ‖Activity‖  Layout Name • ―activity_‖ name 19
  • 20. Android Programming Project Structure  Root Elements  default.properties  built.xml  AndroidManifest.xml  src/  res/  assets/  bin/ 20
  • 21. Android Programming Project Structure  Res folder elements  res/drawable/  res/layout/  res/menu/  res/raw/  res/values/  res/xml/ 21
  • 22. Android Programming Project Structure  Inside the Manifest  Here is where you declare what is inside your application—the activities, the services, and so on.  When you create your application, you will get a starter manifest generated for you.  Underneath the manifest element, you will find the following: • uses-permission • permission • Instrumentation • uses-library • uses-sdk 22
  • 24. Android Programming Running and Debugging  Create a new Android Virtual Device (AVD) if you do not have any.  From the Window menu, select AVD Manager  From the AVD Manager window, click New button  Input • Name: API-16 • Target: Android 4.1 – API Level 16 • Size: 50 MB • Built-in: Default (WVGA800)  Click Create AVD button 24
  • 25. Android Programming Running and Debugging  From the Run menu, select Run or Debug  If you’ve using the ADT plug-in, running or debugging your application:  Compiles the current project and converts it to an Android executable (.dex).  Packages the executable and external resources into Android package (.apk).  Starts the emulator (if it’s not already running).  Installs your application onto the emulator.  Start your application. 25
  • 27. Android Programming Exercise 1  Sizes and Colors  ―Android Programing‖: Text View, Black, 20dp, Center.  ―Username‖: Text Field, Plain Text,  ―Password‖: Text Field, Password  ―Login‖: Button, Center 27