SlideShare uma empresa Scribd logo
1 de 21
Baixar para ler offline
Android Application Development using Java

Reza Yogaswara
http://fastpathprogramming.com
twitter: @rezayoga
Android
●   What is Android?
    –   Android is a Linux-based operating system
        designed primarily for touchscreen mobile devices
        such as smartphones and tablet computers.
Platform




http://developer.android.com/tools/revisions/platforms.html
Platform Highlights
●   New User Features
●   New Developer Features
System Architecture
Dalvik VM
   ●   Dalvik is the process virtual machine (VM) in Google's Android
       operating system. It is the software that runs the apps on Android
       devices. Dalvik is thus an integral part of Android, which is typically
       used on mobile devices such as mobile phones and tablet
       computers as well as more recently on embedded devices such as
       smart TVs and media streamers. Programs are commonly written in
       Java and compiled to bytecode. They are then converted from Java
       Virtual Machine-compatible .class files to Dalvik-compatible .dex
       (Dalvik Executable) files before installation on a device. The
       compact Dalvik Executable format is designed to be suitable for
       systems that are constrained in terms of memory and processor
       speed.




http://en.wikipedia.org/wiki/Dalvik_(software)
System Architecture
●   Runs on top of Linux 2.6.
●   Dalvik VM optimized for mobile devices.
●   Integrated browser on the Webkit engine.
●   Optimized graphics with OpenGL ES.
●   SQLite database for structured data storage.
What You Should Know
Object-oriented programming concepts
Some experience with Java Programming
Experience with Eclipse environment helpful
Knowledge of Android capabilities helpful
Development Environment
●   Java SE Development Kit (JDK)
●   Android SDK Tools:
    –   Android SDK
        ●   http://developer.android.com/sdk/index.html
    –   AVD
    –   Dalvik Debug Monitor Server (DDMS)
●   Android NDK *
●   ADT + Eclipse IDE
Elements
●   Java
●   XML resources
●   Multimedia resources (Raw)
Providing Resources
  MyProject/

    src/

       MyActivity.java

    res/

       drawable/
           icon.png

       layout/

           main.xml

           info.xml

       values/

           strings.xml




http://developer.android.com/guide/topics/resources/providing-resources.html
Application Fundamentals
●   Written in the Java Programming Language
●   Compiled into Android package file (.apk)
●   Each application runs in its sandbox and Linux
    process
●   Applications consist of components, a manifest
    file and resources
Activity
●   Represents a single screen with a user
    interface
●   Most applications contain multiple activities
●   When a new activity starts, it is pushed onto the
    back stack
●   User interface can be built with XML or in Java
●   Monitor lifespan through callback methods like
    onStart(), onPause(), etc
Multiscreen Concepts
●   Screen size: The actual physical size,
    measured as the screen's diagonals
●   Screen density: The quantity of pixels within a
    physical area of the screen
●   Screen supports
    –   http://developer.android.com/guide/practices/screen
        s_support.html
Sizes and Densities
●   Android divides the range of actual screen sizes
    and densities into:
    –   A set of four generalized sizes > layouts:
        ●   small, normal, large, xlarge
    –   A set of four generalized densities > drawable:
        ●   ldpi(low), mdpi(medium), hdpi(high), xhdpi(extra high)
Screen Characteristic
●   Size, Density, + Orientation(Port and Land)
Best Practices Multiple Screens App
●   Use wrap_content, fill_parent, or dp units when
    specifying dimensions in an XML layout file
●   Do not use hard coded pixel values in your
    application code
●   Do not use AbsoluteLayout (it's deprecated)
●   Supply alternative bitmap drawables for
    different screen densities
Opportunities
Market Comparison Q3
Thank you for your attention



Keynote Speaker: Reza Yogaswara
http://fastpathprogramming.com
twitter: @rezayoga

Mais conteúdo relacionado

Mais procurados

Basic android development
Basic android developmentBasic android development
Basic android development
Upanya Singh
 

Mais procurados (20)

Android
AndroidAndroid
Android
 
Andriod
Andriod Andriod
Andriod
 
android
androidandroid
android
 
Android introduction
Android introductionAndroid introduction
Android introduction
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and Tricks
 
Ganar el desafio android
Ganar el desafio androidGanar el desafio android
Ganar el desafio android
 
Basic android development
Basic android developmentBasic android development
Basic android development
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
Android Development - Process & Tools
Android Development - Process & ToolsAndroid Development - Process & Tools
Android Development - Process & Tools
 
Android 101 - Introduction to Android Development
Android 101 - Introduction to Android DevelopmentAndroid 101 - Introduction to Android Development
Android 101 - Introduction to Android Development
 
Android - Workshop By Secure-Net Technologies
Android - Workshop By Secure-Net TechnologiesAndroid - Workshop By Secure-Net Technologies
Android - Workshop By Secure-Net Technologies
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Introduction to Android Development Part 1
Introduction to Android Development Part 1Introduction to Android Development Part 1
Introduction to Android Development Part 1
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
 
Android training in Tambaram
Android training in TambaramAndroid training in Tambaram
Android training in Tambaram
 
Android Application Fundamentals
Android Application FundamentalsAndroid Application Fundamentals
Android Application Fundamentals
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
 
Android development process- thorsignia
Android development process- thorsigniaAndroid development process- thorsignia
Android development process- thorsignia
 
Eclipse Mobile Tools for Java Project
Eclipse Mobile Tools for Java ProjectEclipse Mobile Tools for Java Project
Eclipse Mobile Tools for Java Project
 

Semelhante a Android workshop material

Android Jump Start
Android Jump StartAndroid Jump Start
Android Jump Start
ConFoo
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
ssuser471dfb
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
Joe Jacob
 

Semelhante a Android workshop material (20)

Android My Seminar
Android My SeminarAndroid My Seminar
Android My Seminar
 
Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android Development
 
Mobile app development using Android SDK
Mobile app development using Android SDKMobile app development using Android SDK
Mobile app development using Android SDK
 
Android App Development - 01 Introduction
Android App Development - 01 IntroductionAndroid App Development - 01 Introduction
Android App Development - 01 Introduction
 
Seminar on android app development
Seminar on android app developmentSeminar on android app development
Seminar on android app development
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Android Jump Start
Android Jump StartAndroid Jump Start
Android Jump Start
 
Developing for Android-Types of Android Application
Developing for Android-Types of Android ApplicationDeveloping for Android-Types of Android Application
Developing for Android-Types of Android Application
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Mobile Application Development powerpoint
Mobile Application Development powerpointMobile Application Development powerpoint
Mobile Application Development powerpoint
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
 
document
documentdocument
document
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android Programming
Android ProgrammingAndroid Programming
Android Programming
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android Jump Start
Android Jump StartAndroid Jump Start
Android Jump Start
 
Android Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdfAndroid Seminar BY Suleman Khan.pdf
Android Seminar BY Suleman Khan.pdf
 
Android session-1-sajib
Android session-1-sajibAndroid session-1-sajib
Android session-1-sajib
 
Android ppt
Android ppt Android ppt
Android ppt
 

Android workshop material

  • 1. Android Application Development using Java Reza Yogaswara http://fastpathprogramming.com twitter: @rezayoga
  • 2. Android ● What is Android? – Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers.
  • 4. Platform Highlights ● New User Features ● New Developer Features
  • 6. Dalvik VM ● Dalvik is the process virtual machine (VM) in Google's Android operating system. It is the software that runs the apps on Android devices. Dalvik is thus an integral part of Android, which is typically used on mobile devices such as mobile phones and tablet computers as well as more recently on embedded devices such as smart TVs and media streamers. Programs are commonly written in Java and compiled to bytecode. They are then converted from Java Virtual Machine-compatible .class files to Dalvik-compatible .dex (Dalvik Executable) files before installation on a device. The compact Dalvik Executable format is designed to be suitable for systems that are constrained in terms of memory and processor speed. http://en.wikipedia.org/wiki/Dalvik_(software)
  • 7. System Architecture ● Runs on top of Linux 2.6. ● Dalvik VM optimized for mobile devices. ● Integrated browser on the Webkit engine. ● Optimized graphics with OpenGL ES. ● SQLite database for structured data storage.
  • 8.
  • 9. What You Should Know Object-oriented programming concepts Some experience with Java Programming Experience with Eclipse environment helpful Knowledge of Android capabilities helpful
  • 10. Development Environment ● Java SE Development Kit (JDK) ● Android SDK Tools: – Android SDK ● http://developer.android.com/sdk/index.html – AVD – Dalvik Debug Monitor Server (DDMS) ● Android NDK * ● ADT + Eclipse IDE
  • 11. Elements ● Java ● XML resources ● Multimedia resources (Raw)
  • 12. Providing Resources MyProject/ src/ MyActivity.java res/ drawable/ icon.png layout/ main.xml info.xml values/ strings.xml http://developer.android.com/guide/topics/resources/providing-resources.html
  • 13. Application Fundamentals ● Written in the Java Programming Language ● Compiled into Android package file (.apk) ● Each application runs in its sandbox and Linux process ● Applications consist of components, a manifest file and resources
  • 14. Activity ● Represents a single screen with a user interface ● Most applications contain multiple activities ● When a new activity starts, it is pushed onto the back stack ● User interface can be built with XML or in Java ● Monitor lifespan through callback methods like onStart(), onPause(), etc
  • 15. Multiscreen Concepts ● Screen size: The actual physical size, measured as the screen's diagonals ● Screen density: The quantity of pixels within a physical area of the screen ● Screen supports – http://developer.android.com/guide/practices/screen s_support.html
  • 16. Sizes and Densities ● Android divides the range of actual screen sizes and densities into: – A set of four generalized sizes > layouts: ● small, normal, large, xlarge – A set of four generalized densities > drawable: ● ldpi(low), mdpi(medium), hdpi(high), xhdpi(extra high)
  • 17. Screen Characteristic ● Size, Density, + Orientation(Port and Land)
  • 18. Best Practices Multiple Screens App ● Use wrap_content, fill_parent, or dp units when specifying dimensions in an XML layout file ● Do not use hard coded pixel values in your application code ● Do not use AbsoluteLayout (it's deprecated) ● Supply alternative bitmap drawables for different screen densities
  • 21. Thank you for your attention Keynote Speaker: Reza Yogaswara http://fastpathprogramming.com twitter: @rezayoga