Android workshop material

Embed Size (px)

DESCRIPTION

Materi workshop dan seminar Android @STIMATA Pradnya Paramita 1 Desember 2012

Citation preview

  • 1.Android Application Development using JavaReza Yogaswarahttp://fastpathprogramming.comtwitter: @rezayoga

2. Android What is Android? Android is a Linux-based operating systemdesigned primarily for touchscreen mobile devicessuch as smartphones and tablet computers. 3. Platformhttp://developer.android.com/tools/revisions/platforms.html 4. Platform Highlights New User Features New Developer Features 5. System Architecture 6. Dalvik VM Dalvik is the process virtual machine (VM) in Googles 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. What You Should KnowObject-oriented programming conceptsSome experience with Java ProgrammingExperience with Eclipse environment helpfulKnowledge of Android capabilities helpful 9. 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 10. Elements Java XML resources Multimedia resources (Raw) 11. Providing ResourcesMyProject/src/ MyActivity.javares/ drawable/ icon.png layout/ main.xml info.xml values/ strings.xmlhttp://developer.android.com/guide/topics/resources/providing-resources.html 12. Application Fundamentals Written in the Java Programming Language Compiled into Android package file (.apk) Each application runs in its sandbox and Linuxprocess Applications consist of components, a manifestfile and resources 13. Activity Represents a single screen with a userinterface Most applications contain multiple activities When a new activity starts, it is pushed onto theback stack User interface can be built with XML or in Java Monitor lifespan through callback methods likeonStart(), onPause(), etc 14. Multiscreen Concepts Screen size: The actual physical size,measured as the screens diagonals Screen density: The quantity of pixels within aphysical area of the screen Screen supports http://developer.android.com/guide/practices/screens_support.html 15. Sizes and Densities Android divides the range of actual screen sizesand 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) 16. Screen Characteristic Size, Density, + Orientation(Port and Land) 17. Best Practices Multiple Screens App Use wrap_content, fill_parent, or dp units whenspecifying dimensions in an XML layout file Do not use hard coded pixel values in yourapplication code Do not use AbsoluteLayout (its deprecated) Supply alternative bitmap drawables fordifferent screen densities 18. Opportunities 19. Market Comparison Q3 20. Thank you for your attentionKeynote Speaker: Reza Yogaswarahttp://fastpathprogramming.comtwitter: @rezayoga