Android workshop material

1,019 views

Published on

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

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,019
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Android workshop material

  1. 1. Android Application Development using JavaReza Yogaswarahttp://fastpathprogramming.comtwitter: @rezayoga
  2. 2. Android● What is Android? – Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers.
  3. 3. Platformhttp://developer.android.com/tools/revisions/platforms.html
  4. 4. Platform Highlights● New User Features● New Developer Features
  5. 5. System Architecture
  6. 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. 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. 8. What You Should KnowObject-oriented programming conceptsSome experience with Java ProgrammingExperience with Eclipse environment helpfulKnowledge of Android capabilities helpful
  9. 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. 10. Elements● Java● XML resources● Multimedia resources (Raw)
  11. 11. Providing Resources MyProject/ src/ MyActivity.java res/ drawable/ icon.png layout/ main.xml info.xml values/ strings.xmlhttp://developer.android.com/guide/topics/resources/providing-resources.html
  12. 12. 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
  13. 13. 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
  14. 14. Multiscreen Concepts● Screen size: The actual physical size, measured as the screens 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
  15. 15. 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)
  16. 16. Screen Characteristic● Size, Density, + Orientation(Port and Land)
  17. 17. 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 (its deprecated)● Supply alternative bitmap drawables for different screen densities
  18. 18. Opportunities
  19. 19. Market Comparison Q3
  20. 20. Thank you for your attentionKeynote Speaker: Reza Yogaswarahttp://fastpathprogramming.comtwitter: @rezayoga

×