SlideShare a Scribd company logo
Android Development GeekCamp Singapore 22 nd  August 2009 Leong Hean Hong (CC) BY-SA Some rights preserved.
About ,[object Object]
DOB: 490204800 (GMT +8)
Work: LAMP | Android | iPhone
Interest: Python, Rubik Cube, Number Theory, Web Technologies
Groups: SG PHP User Group, KL Google Technology User Group
Content ,[object Object]
Development Tools
Setup
4 Component Types
Views
Intents
Demo
Intro ,[object Object]
Android Architecture ( http://bit.ly/s73P2 )
Dalvik_VM  !=  JVM ,[object Object]
Bytecode on which it operates is not Java bytecode.
Development Tools ,[object Object]
Optional, recommended ,[object Object]
Android Development Tools ( ADT ) eclipse plugin (http s ://dl-ssl.google.com/android/eclipse/)
Setup ,[object Object]
Install Eclipse.
Install ADT.
Set SDK path in Eclipse preference section.
Create Android Virtual Device ( AVD ).

More Related Content

What's hot

01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
Siva Kumar reddy Vasipally
ย 
Android
AndroidAndroid
Android
Jesus_Aguirre
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Alberto Jr Gaudicos
ย 
Android xml-based layouts-chapter5
Android xml-based layouts-chapter5Android xml-based layouts-chapter5
Android xml-based layouts-chapter5
Dr. Ramkumar Lakshminarayanan
ย 
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
Droidcon Berlin
ย 
Android design patterns
Android design patternsAndroid design patterns
Android design patterns
Platty Soft
ย 
Android Intro
Android IntroAndroid Intro
Android Intro
Justin Grammens
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Ed Zel
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Techacademy Software
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
katayoon_bz
ย 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
C.o. Nieto
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
Avinash Nandakumar
ย 
Android Development Made Easy - With Sample Project
Android Development Made Easy - With Sample ProjectAndroid Development Made Easy - With Sample Project
Android Development Made Easy - With Sample Project
Joemarie Amparo
ย 
Android layouts
Android layoutsAndroid layouts
Android layouts
Jeffrey Quevedo
ย 
Advance Android Layout Walkthrough
Advance Android Layout WalkthroughAdvance Android Layout Walkthrough
Advance Android Layout Walkthrough
Somkiat Khitwongwattana
ย 
Android training day 3
Android training day 3Android training day 3
Android training day 3
Vivek Bhusal
ย 
Mobile app dev and android
Mobile app dev and androidMobile app dev and android
Mobile app dev and android
sandeepji_choudhary
ย 
Hierarchy viewer
Hierarchy viewerHierarchy viewer
Hierarchy viewer
Badrinath Kulkarni
ย 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
Gil Irizarry
ย 
Android TCJUG
Android TCJUGAndroid TCJUG
Android TCJUG
Justin Grammens
ย 

What's hot (20)

01 09 - graphical user interface - basic widgets
01  09 - graphical user interface - basic widgets01  09 - graphical user interface - basic widgets
01 09 - graphical user interface - basic widgets
ย 
Android
AndroidAndroid
Android
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
ย 
Android xml-based layouts-chapter5
Android xml-based layouts-chapter5Android xml-based layouts-chapter5
Android xml-based layouts-chapter5
ย 
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
Droidcon2013 pro guard, optimizer and obfuscator in the android sdk_eric lafo...
ย 
Android design patterns
Android design patternsAndroid design patterns
Android design patterns
ย 
Android Intro
Android IntroAndroid Intro
Android Intro
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
ย 
04 user interfaces
04 user interfaces04 user interfaces
04 user interfaces
ย 
Android tutorial
Android tutorialAndroid tutorial
Android tutorial
ย 
Android Development Made Easy - With Sample Project
Android Development Made Easy - With Sample ProjectAndroid Development Made Easy - With Sample Project
Android Development Made Easy - With Sample Project
ย 
Android layouts
Android layoutsAndroid layouts
Android layouts
ย 
Advance Android Layout Walkthrough
Advance Android Layout WalkthroughAdvance Android Layout Walkthrough
Advance Android Layout Walkthrough
ย 
Android training day 3
Android training day 3Android training day 3
Android training day 3
ย 
Mobile app dev and android
Mobile app dev and androidMobile app dev and android
Mobile app dev and android
ย 
Hierarchy viewer
Hierarchy viewerHierarchy viewer
Hierarchy viewer
ย 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
ย 
Android TCJUG
Android TCJUGAndroid TCJUG
Android TCJUG
ย 

Viewers also liked

Android security
Android securityAndroid security
Android security
Hean Hong Leong
ย 
Developing MyTrafficCam
Developing MyTrafficCamDeveloping MyTrafficCam
Developing MyTrafficCam
Hean Hong Leong
ย 
Go serving: Building server app with go
Go serving: Building server app with goGo serving: Building server app with go
Go serving: Building server app with go
Hean Hong Leong
ย 
Writing An Expository Paragraph
Writing An Expository ParagraphWriting An Expository Paragraph
Writing An Expository Paragraph
Maize Middle School
ย 
Sept 30
Sept 30Sept 30
PHP_Frameworks_Discussion
PHP_Frameworks_DiscussionPHP_Frameworks_Discussion
PHP_Frameworks_Discussion
Hean Hong Leong
ย 
Oct13
Oct13Oct13
Figurative Language
Figurative LanguageFigurative Language
Figurative Language
Maize Middle School
ย 
Mobile Payment
Mobile PaymentMobile Payment
Mobile Payment
Hean Hong Leong
ย 
Color filters for the dummies
Color filters for the dummiesColor filters for the dummies
Color filters for the dummies
Hean Hong Leong
ย 
Hacker Culture
Hacker CultureHacker Culture
Hacker Culture
Hean Hong Leong
ย 
Building A Software Team
Building A Software TeamBuilding A Software Team
Building A Software Team
Hean Hong Leong
ย 
Webhook & Mailhook
Webhook & MailhookWebhook & Mailhook
Webhook & Mailhook
Hean Hong Leong
ย 
Rubik Cubes For Geeks
Rubik Cubes For GeeksRubik Cubes For Geeks
Rubik Cubes For Geeks
Hean Hong Leong
ย 
What the HACK is HHVM?
What the HACK is HHVM?What the HACK is HHVM?
What the HACK is HHVM?
Hean Hong Leong
ย 
Android and web services
Android and web servicesAndroid and web services
Android and web services
Hean Hong Leong
ย 
Writing An Expository Paragraph
Writing An  Expository  ParagraphWriting An  Expository  Paragraph
Writing An Expository Paragraph
Maize Middle School
ย 
Writing An Expository Paragraph
Writing An Expository ParagraphWriting An Expository Paragraph
Writing An Expository Paragraph
Maize Middle School
ย 
How to Plan & Execute a Seminar
How to Plan & Execute a SeminarHow to Plan & Execute a Seminar
How to Plan & Execute a Seminar
Bob Hebeisen
ย 

Viewers also liked (19)

Android security
Android securityAndroid security
Android security
ย 
Developing MyTrafficCam
Developing MyTrafficCamDeveloping MyTrafficCam
Developing MyTrafficCam
ย 
Go serving: Building server app with go
Go serving: Building server app with goGo serving: Building server app with go
Go serving: Building server app with go
ย 
Writing An Expository Paragraph
Writing An Expository ParagraphWriting An Expository Paragraph
Writing An Expository Paragraph
ย 
Sept 30
Sept 30Sept 30
Sept 30
ย 
PHP_Frameworks_Discussion
PHP_Frameworks_DiscussionPHP_Frameworks_Discussion
PHP_Frameworks_Discussion
ย 
Oct13
Oct13Oct13
Oct13
ย 
Figurative Language
Figurative LanguageFigurative Language
Figurative Language
ย 
Mobile Payment
Mobile PaymentMobile Payment
Mobile Payment
ย 
Color filters for the dummies
Color filters for the dummiesColor filters for the dummies
Color filters for the dummies
ย 
Hacker Culture
Hacker CultureHacker Culture
Hacker Culture
ย 
Building A Software Team
Building A Software TeamBuilding A Software Team
Building A Software Team
ย 
Webhook & Mailhook
Webhook & MailhookWebhook & Mailhook
Webhook & Mailhook
ย 
Rubik Cubes For Geeks
Rubik Cubes For GeeksRubik Cubes For Geeks
Rubik Cubes For Geeks
ย 
What the HACK is HHVM?
What the HACK is HHVM?What the HACK is HHVM?
What the HACK is HHVM?
ย 
Android and web services
Android and web servicesAndroid and web services
Android and web services
ย 
Writing An Expository Paragraph
Writing An  Expository  ParagraphWriting An  Expository  Paragraph
Writing An Expository Paragraph
ย 
Writing An Expository Paragraph
Writing An Expository ParagraphWriting An Expository Paragraph
Writing An Expository Paragraph
ย 
How to Plan & Execute a Seminar
How to Plan & Execute a SeminarHow to Plan & Execute a Seminar
How to Plan & Execute a Seminar
ย 

Similar to Geekcamp Android

Advanced Android gReporter
Advanced Android gReporterAdvanced Android gReporter
Advanced Android gReporter
natdefreitas
ย 
Building apps for multiple devices
Building apps for multiple devicesBuilding apps for multiple devices
Building apps for multiple devices
Terry Ryan
ย 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Jim Tochterman
ย 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)
Fafadia Tech
ย 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
Peter van der Linden
ย 
Developing in android
Developing in androidDeveloping in android
Developing in android
Christopher Decker
ย 
Android Development
Android DevelopmentAndroid Development
Android Development
James Williams
ย 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
Raveendra R
ย 
Mobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 AndroidMobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 Android
Mohammad Shaker
ย 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
Arcadian Learning
ย 
Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
Junda Ong
ย 
android level 3
android level 3android level 3
android level 3
DevMix
ย 
Android Tutorial
Android TutorialAndroid Tutorial
Android Tutorial
Fun2Do Labs
ย 
Android dev
Android devAndroid dev
Android dev
yincan sheng
ย 
Android | Busy Java Developers Guide to Android: UI | Ted Neward
Android | Busy Java Developers Guide to Android: UI | Ted NewardAndroid | Busy Java Developers Guide to Android: UI | Ted Neward
Android | Busy Java Developers Guide to Android: UI | Ted Neward
JAX London
ย 
Android Development project
Android Development projectAndroid Development project
Android Development project
Minhaj Kazi
ย 
Android
AndroidAndroid
Android
Keshan Sodimana
ย 
Migrating JavaME Apps to Android
Migrating JavaME Apps to AndroidMigrating JavaME Apps to Android
Migrating JavaME Apps to Android
Motorola Mobility - MOTODEV
ย 
Introduction to Android Fragments
Introduction to Android FragmentsIntroduction to Android Fragments
Introduction to Android Fragments
Sergi Martรญnez
ย 
Holland9 Android Workshop Hogeschool Rotterdam
Holland9 Android Workshop Hogeschool RotterdamHolland9 Android Workshop Hogeschool Rotterdam
Holland9 Android Workshop Hogeschool Rotterdam
J B
ย 

Similar to Geekcamp Android (20)

Advanced Android gReporter
Advanced Android gReporterAdvanced Android gReporter
Advanced Android gReporter
ย 
Building apps for multiple devices
Building apps for multiple devicesBuilding apps for multiple devices
Building apps for multiple devices
ย 
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NCAndroid Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
Android Development w/ ArcGIS Server - Esri Dev Meetup - Charlotte, NC
ย 
Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)Introduction To Google Android (Ft Rohan Bomle)
Introduction To Google Android (Ft Rohan Bomle)
ย 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
ย 
Developing in android
Developing in androidDeveloping in android
Developing in android
ย 
Android Development
Android DevelopmentAndroid Development
Android Development
ย 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
ย 
Mobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 AndroidMobile Software Engineering Crash Course - C03 Android
Mobile Software Engineering Crash Course - C03 Android
ย 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
ย 
Android Workshop
Android WorkshopAndroid Workshop
Android Workshop
ย 
android level 3
android level 3android level 3
android level 3
ย 
Android Tutorial
Android TutorialAndroid Tutorial
Android Tutorial
ย 
Android dev
Android devAndroid dev
Android dev
ย 
Android | Busy Java Developers Guide to Android: UI | Ted Neward
Android | Busy Java Developers Guide to Android: UI | Ted NewardAndroid | Busy Java Developers Guide to Android: UI | Ted Neward
Android | Busy Java Developers Guide to Android: UI | Ted Neward
ย 
Android Development project
Android Development projectAndroid Development project
Android Development project
ย 
Android
AndroidAndroid
Android
ย 
Migrating JavaME Apps to Android
Migrating JavaME Apps to AndroidMigrating JavaME Apps to Android
Migrating JavaME Apps to Android
ย 
Introduction to Android Fragments
Introduction to Android FragmentsIntroduction to Android Fragments
Introduction to Android Fragments
ย 
Holland9 Android Workshop Hogeschool Rotterdam
Holland9 Android Workshop Hogeschool RotterdamHolland9 Android Workshop Hogeschool Rotterdam
Holland9 Android Workshop Hogeschool Rotterdam
ย 

More from Hean Hong Leong

Telegram Bot
Telegram BotTelegram Bot
Telegram Bot
Hean Hong Leong
ย 
How To Work With UI/UX Designer
How To Work With UI/UX DesignerHow To Work With UI/UX Designer
How To Work With UI/UX Designer
Hean Hong Leong
ย 
How not to be a mediocre developer!
How not to be a mediocre developer!How not to be a mediocre developer!
How not to be a mediocre developer!
Hean Hong Leong
ย 
Gitflow Workflow
Gitflow WorkflowGitflow Workflow
Gitflow Workflow
Hean Hong Leong
ย 
Lazy Programmer's Guide To Writing Spec
Lazy Programmer's Guide To Writing SpecLazy Programmer's Guide To Writing Spec
Lazy Programmer's Guide To Writing Spec
Hean Hong Leong
ย 
Developing Better Software
Developing Better SoftwareDeveloping Better Software
Developing Better Software
Hean Hong Leong
ย 
Do More With Message Queue
Do More With Message QueueDo More With Message Queue
Do More With Message Queue
Hean Hong Leong
ย 

More from Hean Hong Leong (7)

Telegram Bot
Telegram BotTelegram Bot
Telegram Bot
ย 
How To Work With UI/UX Designer
How To Work With UI/UX DesignerHow To Work With UI/UX Designer
How To Work With UI/UX Designer
ย 
How not to be a mediocre developer!
How not to be a mediocre developer!How not to be a mediocre developer!
How not to be a mediocre developer!
ย 
Gitflow Workflow
Gitflow WorkflowGitflow Workflow
Gitflow Workflow
ย 
Lazy Programmer's Guide To Writing Spec
Lazy Programmer's Guide To Writing SpecLazy Programmer's Guide To Writing Spec
Lazy Programmer's Guide To Writing Spec
ย 
Developing Better Software
Developing Better SoftwareDeveloping Better Software
Developing Better Software
ย 
Do More With Message Queue
Do More With Message QueueDo More With Message Queue
Do More With Message Queue
ย 

Recently uploaded

Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
Kalna College
ย 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
EduSkills OECD
ย 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
ย 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
ย 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
ย 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
Kalna College
ย 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
7DFarhanaMohammed
ย 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
Kalna College
ย 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
ย 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
ย 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
ย 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
ย 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
sonukumargpnirsadhan
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
ย 

Recently uploaded (20)

Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
ย 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
ย 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
ย 
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
220711130100 udita Chakraborty  Aims and objectives of national policy on inf...220711130100 udita Chakraborty  Aims and objectives of national policy on inf...
220711130100 udita Chakraborty Aims and objectives of national policy on inf...
ย 
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
Andreas Schleicher presents PISA 2022 Volume III - Creative Thinking - 18 Jun...
ย 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
ย 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
ย 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
ย 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
ย 
220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science220711130082 Srabanti Bag Internet Resources For Natural Science
220711130082 Srabanti Bag Internet Resources For Natural Science
ย 
adjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammaradjectives.ppt for class 1 to 6, grammar
adjectives.ppt for class 1 to 6, grammar
ย 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
ย 
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx78 Microsoft-Publisher - Sirin Sultana Bora.pptx
78 Microsoft-Publisher - Sirin Sultana Bora.pptx
ย 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
ย 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
ย 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
ย 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
ย 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
ย 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
ย 
Observational Learning
Observational Learning Observational Learning
Observational Learning
ย 

Geekcamp Android

  • 1. Android Development GeekCamp Singapore 22 nd August 2009 Leong Hean Hong (CC) BY-SA Some rights preserved.
  • 2.
  • 4. Work: LAMP | Android | iPhone
  • 5. Interest: Python, Rubik Cube, Number Theory, Web Technologies
  • 6. Groups: SG PHP User Group, KL Google Technology User Group
  • 7.
  • 11. Views
  • 13. Demo
  • 14.
  • 15. Android Architecture ( http://bit.ly/s73P2 )
  • 16.
  • 17. Bytecode on which it operates is not Java bytecode.
  • 18.
  • 19.
  • 20. Android Development Tools ( ADT ) eclipse plugin (http s ://dl-ssl.google.com/android/eclipse/)
  • 21.
  • 24. Set SDK path in Eclipse preference section.
  • 25. Create Android Virtual Device ( AVD ).
  • 26. RTFM and start coding.
  • 28.
  • 29. Use Sun Java ( โ€œrequires plug-in org.eclipse.wst.sse.uiโ€ error )
  • 30. If installed Eclipse using root , update using root .
  • 31. Run <android-sdk>/tools/ddms once, before installing ADT. (solved in ADT 0.9.1 http://bit.ly/15FdZt )
  • 32.
  • 33.
  • 34.
  • 35. ย 
  • 36.
  • 37.
  • 38. layout/ (design Views , similar to HTML)
  • 39.
  • 40.
  • 41.
  • 42.
  • 44.
  • 45. Button text is defined in /res/values/string.xml .
  • 46. Add Button (main.xml) <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:orientation=&quot;vertical&quot; android:gravity=&quot;center&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot;> <TextView android:layout_width=&quot; wrap_content &quot; android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/hello&quot; /> <Button android:id=&quot;@+id/helloButton&quot; android:layout_width=&quot;wrap_content&quot; android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/hello_button&quot; /> </LinearLayout>
  • 47. Launch Image Gallery private static final int REQUEST_PICK_IMAGE = 1; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button = (Button)findViewById(R.id.helloButton); button.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { Intent pickImage = new Intent(Intent.ACTION_PICK); pickImage.setType(&quot;image/*&quot;); startActivityForResult(pickImage, REQUEST_PICK_IMAGE); } }); }
  • 48.
  • 49. Intent messaging is a facility for late run-time binding between components in the same or different applications.
  • 50. Activity , Service , BroadcastReceiver are activated through Intent .
  • 52.
  • 53. Create a Layout to display the photo (photo_viewer.xml)
  • 54. Use a ImageView to display photo
  • 55. GoodByeWorld launch PhotoViewer by sending it an Intent
  • 56. The Intent contains the URI of the selected image
  • 57. ImageView load image from the URI
  • 58.
  • 59. Contains an ImageView for displaying image
  • 60. The ImageView is given an ID ( photoView )
  • 61. photo_viewer.xml <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:orientation=&quot;vertical&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot;> < ImageView android:id=&quot;@+id/photoView&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; /> </LinearLayout>
  • 62. PhotoViewer.java protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView( R.layout.photo_viewer ); ImageView photoView = (ImageView)findViewById( R.id.photoView ); photoView.setImageURI( getIntent().getData() ); }
  • 63. AndroidManifest.xml <application android:icon=&quot;@drawable/icon&quot; android:label=&quot;@string/app_name&quot;> <activity android:name=&quot;.GoodByeWorld&quot; android:label=&quot;@string/app_name&quot;> <intent-filter> <action android:name=&quot;android.intent.action.MAIN&quot; /> <category android:name=&quot;android.intent.category.LAUNCHER&quot; /> </intent-filter> </activity> <activity android:name=&quot;.PhotoViewer&quot;></activity> </application>
  • 64. Create Menu private static final int MENU_RED = Menu.FIRST; private static final int MENU_GREEN = Menu.FIRST + 1; private static final int MENU_BLUE = Menu.FIRST + 2; private static final int MENU_RAND = Menu.FIRST + 3; public boolean onCreateOptionsMenu (Menu menu) { super.onCreateOptionsMenu(menu); menu.add(Menu.NONE, MENU_RED, Menu.NONE, &quot;Filter Red&quot;); menu.add(Menu.NONE, MENU_GREEN, Menu.NONE, &quot;Filter Green&quot;); menu.add(Menu.NONE, MENU_BLUE, Menu.NONE, &quot;Filter Blue&quot;); menu.add(Menu.NONE, MENU_RAND, Menu.NONE, &quot;Random Filter&quot;); return true; }
  • 65. Response to Menu Selection public boolean onMenuItemSelected (int featureId, MenuItem item) { super.onMenuItemSelected(featureId, item); switch(item.getItemId()) { case MENU_RED: photoView. setColorFilter (redFilter()); break; case MENU_GREEN: photoView. setColorFilter (greenFilter()); break; case MENU_BLUE: photoView. setColorFilter (blueFilter()); break; case MENU_RAND: photoView. setColorFilter (randFilter()); break; } return true; }
  • 67. ColorMatrixColorFilter private ColorMatrixColorFilter redFilter() { return new ColorMatrixColorFilter(new float[] { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0 }); }
  • 68. Q & A Any question?