SlideShare a Scribd company logo
1 of 29
A Noob’s Guide to Android Application Development By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  BarCamp Singapore 3 28/2/2009
Who am I? ,[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
What is in this presentation? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Android? I am cool! By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Why Android? ,[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Why Android? ,[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Why Android? ,[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Why Android? ,[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
How to get started? Fix me! By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
How to get started? ,[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
“ Deep” Dive By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
“ Deep” Dive ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
[object Object],Package: com.pathfinder.sg CategoriesListActivity.java PlacesListActivity.java Services: MyPositionService .java (to obtain location from GPS, cell tower) Content Provider: xml file in /res/raw containing location data By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
Set view using ListAdapter  (since this is ListActivity) Starting GPS/ntw service Staring the Application: OnCreate  Android logging class for logcat on DDMS (debugging) By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
Moving to Another Activity Using Intent By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  Initialize intent variable: Intent(packageContext,  Class)  Start activity Add extended content to be passed through intent: putExtra(String name, value) Bonus point: If you intend to end current activity and back to previous, use finish() instead “ Deep” Dive
Make sure you stop services that is not needed upon exit! i.e. GPS service will otherwise continue to run in background By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  Remember to consider other parts of the lifecycle “ Deep” Dive
By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  Android Manifest User permission needed  Declare activities within the application “ Deep” Dive
[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  “ Deep” Dive
How to Publish? By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
How to Publish? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  Suggested commands $ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000 $ jarsigner -verbose -keystore my-release-key.keystore my_application.apk alias_name
How to Publish? ,[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
How to Publish? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Resources By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Resources ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Resources ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
Q&A By: Chua Zi Yong Singapore Android User Group www.codeandroid.org  ??

More Related Content

Similar to A Noob’S Guide To Android Application Development

Android application development
Android application developmentAndroid application development
Android application development
slidesuren
 

Similar to A Noob’S Guide To Android Application Development (20)

[Droidcon Paris 2013]Multi-Versioning Android Tips
[Droidcon Paris 2013]Multi-Versioning Android Tips[Droidcon Paris 2013]Multi-Versioning Android Tips
[Droidcon Paris 2013]Multi-Versioning Android Tips
 
Android
Android Android
Android
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
 
Android - Getting started with Android
Android - Getting started with Android Android - Getting started with Android
Android - Getting started with Android
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Android
AndroidAndroid
Android
 
Android TCJUG
Android TCJUGAndroid TCJUG
Android TCJUG
 
GDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android NGDG Devfest 2016 session on Android N
GDG Devfest 2016 session on Android N
 
Engineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) DevelopmentEngineering and Industrial Mobile Application (APP) Development
Engineering and Industrial Mobile Application (APP) Development
 
Ionic - Revolutionizing Hybrid Mobile Application Development
Ionic - Revolutionizing Hybrid Mobile Application DevelopmentIonic - Revolutionizing Hybrid Mobile Application Development
Ionic - Revolutionizing Hybrid Mobile Application Development
 
Droidcon: Sean Owen: Driving Downloads via Intents- 29/10/2010
Droidcon: Sean Owen: Driving Downloads via Intents- 29/10/2010Droidcon: Sean Owen: Driving Downloads via Intents- 29/10/2010
Droidcon: Sean Owen: Driving Downloads via Intents- 29/10/2010
 
Android Minnebar
Android MinnebarAndroid Minnebar
Android Minnebar
 
Develop Android/iOS app using golang
Develop Android/iOS app using golangDevelop Android/iOS app using golang
Develop Android/iOS app using golang
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 
Cs4hs android-01hello
Cs4hs android-01helloCs4hs android-01hello
Cs4hs android-01hello
 
Android application development
Android application developmentAndroid application development
Android application development
 
FRIDA 101 Android
FRIDA 101 AndroidFRIDA 101 Android
FRIDA 101 Android
 
Ruby conf2012
Ruby conf2012Ruby conf2012
Ruby conf2012
 
Lecture #1 Creating your first android project
Lecture #1  Creating your first android projectLecture #1  Creating your first android project
Lecture #1 Creating your first android project
 
Webinar on Google Android SDK
Webinar on Google Android SDKWebinar on Google Android SDK
Webinar on Google Android SDK
 

More from Zi Yong Chua (8)

Android Wear Presentation
Android Wear PresentationAndroid Wear Presentation
Android Wear Presentation
 
Getting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDKGetting Started: Google Glass Apps with GDK
Getting Started: Google Glass Apps with GDK
 
Getting Discovered on Google Play
Getting Discovered on Google PlayGetting Discovered on Google Play
Getting Discovered on Google Play
 
Monetizing Android Apps in Asia
Monetizing Android Apps in AsiaMonetizing Android Apps in Asia
Monetizing Android Apps in Asia
 
Tips for Android Publishing in China
Tips for Android Publishing in ChinaTips for Android Publishing in China
Tips for Android Publishing in China
 
MoVend Product Intro
MoVend Product IntroMoVend Product Intro
MoVend Product Intro
 
AdMob CodeAndroid Presentation
AdMob CodeAndroid PresentationAdMob CodeAndroid Presentation
AdMob CodeAndroid Presentation
 
CodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on AndroidCodeAndroid Meet Up Slides - Augmented Reality on Android
CodeAndroid Meet Up Slides - Augmented Reality on Android
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

A Noob’S Guide To Android Application Development

  • 1. A Noob’s Guide to Android Application Development By: Chua Zi Yong Singapore Android User Group www.codeandroid.org BarCamp Singapore 3 28/2/2009
  • 2.
  • 3.
  • 4. Why Android? I am cool! By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
  • 5.
  • 6.
  • 7.
  • 8.
  • 9. How to get started? Fix me! By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
  • 10.
  • 11. “ Deep” Dive By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. Set view using ListAdapter (since this is ListActivity) Starting GPS/ntw service Staring the Application: OnCreate Android logging class for logcat on DDMS (debugging) By: Chua Zi Yong Singapore Android User Group www.codeandroid.org “ Deep” Dive
  • 18. Moving to Another Activity Using Intent By: Chua Zi Yong Singapore Android User Group www.codeandroid.org Initialize intent variable: Intent(packageContext,  Class) Start activity Add extended content to be passed through intent: putExtra(String name, value) Bonus point: If you intend to end current activity and back to previous, use finish() instead “ Deep” Dive
  • 19. Make sure you stop services that is not needed upon exit! i.e. GPS service will otherwise continue to run in background By: Chua Zi Yong Singapore Android User Group www.codeandroid.org Remember to consider other parts of the lifecycle “ Deep” Dive
  • 20. By: Chua Zi Yong Singapore Android User Group www.codeandroid.org Android Manifest User permission needed Declare activities within the application “ Deep” Dive
  • 21.
  • 22. How to Publish? By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
  • 23.
  • 24.
  • 25.
  • 26. Resources By: Chua Zi Yong Singapore Android User Group www.codeandroid.org
  • 27.
  • 28.
  • 29. Q&A By: Chua Zi Yong Singapore Android User Group www.codeandroid.org ??