Begining Android Development
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Begining Android Development

  • 1,442 views
Uploaded on

Presentasi Pengembangan Applikasi Android untuk pengguna Linux di OSCA (Open Source Community AKAKOM),...

Presentasi Pengembangan Applikasi Android untuk pengguna Linux di OSCA (Open Source Community AKAKOM),

Yogyakarta, 25 September 2011

More in: Spiritual , Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,442
On Slideshare
1,005
From Embeds
437
Number of Embeds
32

Actions

Shares
Downloads
26
Comments
0
Likes
0

Embeds 437

http://juhaku.blogspot.com 198
http://juhaku.blogspot.in 30
http://juhaku.blogspot.de 27
http://juhaku.blogspot.ru 19
http://juhaku.blogspot.com.br 17
http://juhaku.blogspot.co.nz 14
http://juhaku.blogspot.fr 14
http://juhaku.blogspot.hk 12
http://juhaku.blogspot.co.uk 11
http://juhaku.blogspot.nl 11
http://juhaku.blogspot.com.au 9
http://juhaku.blogspot.sk 7
http://juhaku.blogspot.mx 7
http://juhaku.blogspot.jp 7
http://juhaku.blogspot.ca 7
http://juhaku.blogspot.it 6
http://juhaku.blogspot.co.il 5
http://juhaku.blogspot.ch 5
http://juhaku.blogspot.be 4
http://juhaku.blogspot.co.at 4
http://juhaku.blogspot.cz 4
http://juhaku.blogspot.dk 3
http://juhaku.blogspot.com.es 3
http://juhaku.blogspot.no 2
http://juhaku.blogspot.com.ar 2
http://juhaku.blogspot.tw 2
http://juhaku.blogspot.ro 2
http://juhaku.blogspot.pt 1
http://juhaku.blogspot.gr 1
http://juhaku.blogspot.fi 1
http://juhaku.blogspot.hu 1
http://juhaku.blogspot.kr 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Beginning Android Development Powered by:Hayi Nukmane-Mail: hayi.nkm@gmail.com
  • 2. Agenda Introduction Android Architecture Application Development Demo
  • 3. What is Android?● What is Android??● Android Features. – Application framework – Dalvik virtual machine – Integrated browser – Optimized graphics – SQLite – Media support – GSM Telephony (hardware dependent) – Bluetooth, EDGE, 3G, and WiFi (hardware dependent) – Camera, GPS, compass, and accelerometer (hardware dependent) – Rich development environment
  • 4. Agenda Intro Android Architecture Application Development Demo
  • 5. Android Architecture
  • 6. Android Architecture● Linux Kernel ● 2.6 -> core system – Security, – memory management, – process management, – network stack, and – driver model.
  • 7. Android Architecture● Library – System C library (libc) – Media Libraries - based on PacketVideos OpenCORE; – Surface Manager – LibWebCore – SGL – 3D libraries – FreeType - bitmap and vector font rendering – SQLite
  • 8. Android Architecture● Android runtime – Dalvik VM – Not a Java VM ● register based – one instance per application – memory optimized – uses Linux to manage memory and multi- threading
  • 9. Android Architecture● Application Framework ● Service and System – Views – Content providers – Resource manager – Notification manager – Activity manager ● All Java classes ● Simplify the reuse of components ● Any application can publish its capabilities and any other application may then make use of those capabilities
  • 10. Android Architecture● Applications ● Core Applications – email client, – SMS program, – calendar, – maps, – browser, – contacts, and others ● All applications are written using the Java programming language.
  • 11. Agenda Intro Android Architecture Application Development Demo
  • 12. Development Environment● Eclipse Based ● Android SDK, – http://developer.android.com/sdk/index.html ● Android Development Tools (ADT) plugin for Eclipse – http://developer.android.com/sdk/eclipse-adt.html ● Emulator (AVD) or ● Target Devices – USB Connection
  • 13. Development Environment● Netbean Based ● Android SDK, – http://developer.android.com/sdk/index.html ● Android plugin for Netbeans – http://kenai.com/projects/nbandroid/downloads/download/ updatecenter/updates.xml ● Emulator (AVD) or ● Target Devices – USB Connection
  • 14. Development Environment ● Command Line Based ● Android SDK, – http://developer.android.com/sdk/index.html ● Ant + Bash + editor, ● Emulator (AVD), or ● Target Devices – USB ConnectionReference: http://developer.android.com/guide/developing/projects/projects-cmdline.html
  • 15. Development Environment● Web Based (App Inventor) ● Android SDK, – http://developer.android.com/sdk/index.html ● Web Browser, – http://www.appinventorbeta.com ● Emulator (AVD), or ● Target Devices – USB Connection
  • 16. Programming Model No single entry point – main() Run when needed.
  • 17. Programming Model● Application Components ● Activity ● Content Providers – Executable unit – Makes applications data available to other – Has UI – Can be: – 1 application can have ● File system, multiple Activity ● Database (SQLite) ● Services ● Other – Targeted by: – Similar to Activity ContentResolver – No UI ● Broadcast Receiver – Run in Background – Respond to broadcast messages.
  • 18. Where is the Tools?● android● Dalvik Debug Monitor Server (ddms)● dmtracedump● Draw 9-patch● Android Emulator (emulator)● Hierarchy Viewer (hierarchyviewer)● hprof-conv● layoutopt● mksdcard● Monkey● monkeyrunner● ProGuard● sqlite3● traceview● zipalign
  • 19. Agenda Intro Android Architecture Application Development Demo
  • 20. Lets try to Develop.
  • 21. How do I create some Project?Which one? Eclipse Based, or Command Line
  • 22. Android + Eclipse
  • 23. Android + Bash (Ant)Requirement:● Ant● Shell / Bash atau
  • 24. Create a Project.Run in terminal: Example:$ android create project  $ android create project ­­target <target>  ­­target 7 ­­name <project name>  ­­name CobaAndroid ­­path <path to project>  ­­path ./CobaAndroid ­­activity <activity name>  ­­activity CobaActivity ­­package <package name> ­­package com.android.main
  • 25. Project Structure└── CobaAndroidProject    ├── AndroidManifest.xml    ├── bin    ├── build.properties    ├── build.xml    ├── default.properties    ├── libs    ├── local.properties    ├── proguard.cfg    ├── res    │   ├── drawable­hdpi    │   │   └── icon.png    │   ├── ...    │   ├── layout    │   │   └── main.xml    │   └── values    │       └── strings.xml    └── src        └── com            └── android                └── main                    └── CobaAndroidActivity.java
  • 26. Running it...Just type:$ emulator ­avd <avd_name> &[wait a moment]$ ant install$ adb shell am start ­n <package.name>/.<ActivityName>
  • 27. Debugging it...Run fromterminal:$ ddms
  • 28. Deployment ● Debug ● Target: Development ● Release ● Target: Market ● Unsigned ● Signed (for Market)
  • 29. Where I can learn it? http://www.anddev.org http://www.vogella.de/http://stackoverflow.com/questions/tagged/android
  • 30. And the last one....
  • 31. What happen if: SL4A
  • 32. Questions? Hayi Nukman e-Mail: hayi.nkm@gmail.com FB: Baka Hayi http://kumachi.wordpress.com