SlideShare a Scribd company logo
CODE CRUNCH
QUICKSTART TO ANDROID DEVELOPMENT
By: Obed Ademang – GDG, UCC Lead
NO ANDROID
DEVICE

I LIKE APPS

Nene Padi Ademang (Obed)

NOT A
DEVELOPER

NO
KNOWLEDGE
OF
PROGRAMMING

2/18/2014

2
Overview of the Platform

Nene Padi Ademang (Obed)

2/18/2014

3
Android Platform


It is a software stack for mobile devices.



It contains:


OS Kernel, system libraries, application frameworks and key apps



Android Software Development Kit (SDK):




Libraries and development tools for creating android applications

There are lots of documentation on:


http://developer.android.com/training

Nene Padi Ademang (Obed)

2/18/2014

4
Applications

Application Framework

Libraries

Android Runtime

Linux Kernel

Nene Padi Ademang (Obed)

2/18/2014

5
Development

Nene Padi Ademang (Obed)

2/18/2014

6
Android Development Environment


ADT Bundle



Eclipse + ADT Plugin



Latest system image for emulator





Latest Android platform

Additional development tools

Prerequisite


Windows 7 / Mac OS X (Intel x86) / Various Linux Distros



At least Java SE 6



Knowledge about Java Programming

Nene Padi Ademang (Obed)

2/18/2014

7
Demo

Nene Padi Ademang (Obed)

2/18/2014

8
Pros & Cons of the Emulator
Pros

Nene Padi Ademang (Obed)

Cons

2/18/2014

9
Advance Features of Emulator


The emulator helps test some advance features like


Network speed/Latency



Battery power



Location coordinates



Emulated calls

Nene Padi Ademang (Obed)

2/18/2014

10
Demo

Nene Padi Ademang (Obed)

2/18/2014

11
Overview of Activity Life Cycle and
Intents

Nene Padi Ademang (Obed)

2/18/2014

12
Activity


An application component that provides a screen with which users can
interact in order to do something.



An application usually consists of multiple activities that are loosely bound to
each other.



Each time a new activity starts, the previous activity is stopped, but the
system preserves the activity in a stack (the "back stack").


startActivity()



startActivityForResult()

Nene Padi Ademang (Obed)

2/18/2014

13
Nene Padi Ademang (Obed)

2/18/2014

14
Intents


Explicit intent

Intent intent = new Intent(this, SignInActivity.class);
startActivity(intent);



Implicit Intent

Intent intent = new Intent(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_EMAIL, recipientArray);
startActivity(intent);

Nene Padi Ademang (Obed)

2/18/2014

15
Demo

Nene Padi Ademang (Obed)

2/18/2014

16
Nene Padi Ademang (Obed)

2/18/2014

17

More Related Content

What's hot (20)

PPTX
Flutter introduction
Võ Duy Tuấn
 
PPTX
Flutter
Mohit Nainwal
 
PDF
Flutter app
apptunixapp
 
PPTX
Dload mobile development
Sayed Ahmed
 
PPT
Intro to Android Programming
Peter van der Linden
 
PDF
Flutter bus 2018
Ahmed Abu Eldahab
 
PPT
Synapseindia android app programming
Tarunsingh198
 
PPTX
Flutter introduction
SheilaJimenezMorejon
 
PDF
Flutter overview - advantages & disadvantages for business
Bartosz Kosarzycki
 
PPTX
Android 101 - Introduction to Android Development
Andy Scherzinger
 
PPTX
Intro to Flutter
Shady Selim
 
PPTX
Flutter: Future of App Development
9 series
 
PPT
Mobile development
Sayed Ahmed
 
PDF
6 x1 flutter_talk
Ahmed Abu Eldahab
 
PDF
Android Workshop Part 1
NAILBITER
 
PDF
Aosp+
jpuderer
 
PPTX
Android
Harendra Chauhan
 
DOCX
Ionic best practices
Allanki Srinivas
 
PPTX
Faisal Abid - Flutter for Android developers! - Codemotion Milan 2018
Codemotion
 
DOCX
Project proposal android operating system
Attiq12
 
Flutter introduction
Võ Duy Tuấn
 
Flutter
Mohit Nainwal
 
Flutter app
apptunixapp
 
Dload mobile development
Sayed Ahmed
 
Intro to Android Programming
Peter van der Linden
 
Flutter bus 2018
Ahmed Abu Eldahab
 
Synapseindia android app programming
Tarunsingh198
 
Flutter introduction
SheilaJimenezMorejon
 
Flutter overview - advantages & disadvantages for business
Bartosz Kosarzycki
 
Android 101 - Introduction to Android Development
Andy Scherzinger
 
Intro to Flutter
Shady Selim
 
Flutter: Future of App Development
9 series
 
Mobile development
Sayed Ahmed
 
6 x1 flutter_talk
Ahmed Abu Eldahab
 
Android Workshop Part 1
NAILBITER
 
Aosp+
jpuderer
 
Ionic best practices
Allanki Srinivas
 
Faisal Abid - Flutter for Android developers! - Codemotion Milan 2018
Codemotion
 
Project proposal android operating system
Attiq12
 

Viewers also liked (10)

PPTX
Cn ppt
Ashish Agarwal
 
PPT
83747965 steganography
Prashant Shukla
 
PPTX
Stegnography final
Heena Bohra
 
PDF
Wireless Cracking using Kali
n|u - The Open Security Community
 
PPT
Stegnography
Perfect Training Center
 
PPT
Steganography - The art of hiding data
Sarin Thapa
 
PPTX
Steganography
Neha Sharma
 
PPT
Steganography presentation
Ashwin Prasad
 
PPTX
Steganography Project
Jitu Choudhary
 
83747965 steganography
Prashant Shukla
 
Stegnography final
Heena Bohra
 
Wireless Cracking using Kali
n|u - The Open Security Community
 
Steganography - The art of hiding data
Sarin Thapa
 
Steganography
Neha Sharma
 
Steganography presentation
Ashwin Prasad
 
Steganography Project
Jitu Choudhary
 
Ad

Similar to Code crunch (20)

PDF
Android App Development 01 : Getting Start
Anuchit Chalothorn
 
PDF
Mobile app development using Android SDK
Josh Clemm
 
PDF
[Android] Introduction to Android Programming
Nikmesoft Ltd
 
PDF
android-developer-fundamentals-course-concepts-en.pdf
GashawMenberu3
 
PPTX
Google Android Developer eifjjof fjifidj.pptx
baddisatishchandra
 
PPT
Getting started with android dev and test perspective
Gunjan Kumar
 
PPT
Android Application Development Using Java
amaankhan
 
PPTX
Seminar on android app development
AbhishekKumar4779
 
PPT
Synapseindia android apps application
Synapseindiappsdevelopment
 
PPTX
Getting started with android programming
PERKYTORIALS
 
PPTX
Getting started with android development
FatimaYousif11
 
PPTX
Introduction To Android For Beginners.
Sandeep Londhe
 
PPTX
Android
BVP GTUG
 
PPTX
Google_Android_Developer l ove jndfdcc (1).pptx
baddisatishchandra
 
PPTX
An Introduction to Android Development for Students
cAnhTrn53
 
PPTX
01.0 Introduction to Android_Mobile.pptx
WarisBaig
 
PPTX
01 introduction & setup - Android
Wingston
 
PPTX
Android App Development..
ITM University
 
PPT
9780134433646 annuzzi ch02 (1)
Peter Mburu
 
PDF
Begining Android Development
Hayi Nukman
 
Android App Development 01 : Getting Start
Anuchit Chalothorn
 
Mobile app development using Android SDK
Josh Clemm
 
[Android] Introduction to Android Programming
Nikmesoft Ltd
 
android-developer-fundamentals-course-concepts-en.pdf
GashawMenberu3
 
Google Android Developer eifjjof fjifidj.pptx
baddisatishchandra
 
Getting started with android dev and test perspective
Gunjan Kumar
 
Android Application Development Using Java
amaankhan
 
Seminar on android app development
AbhishekKumar4779
 
Synapseindia android apps application
Synapseindiappsdevelopment
 
Getting started with android programming
PERKYTORIALS
 
Getting started with android development
FatimaYousif11
 
Introduction To Android For Beginners.
Sandeep Londhe
 
Android
BVP GTUG
 
Google_Android_Developer l ove jndfdcc (1).pptx
baddisatishchandra
 
An Introduction to Android Development for Students
cAnhTrn53
 
01.0 Introduction to Android_Mobile.pptx
WarisBaig
 
01 introduction & setup - Android
Wingston
 
Android App Development..
ITM University
 
9780134433646 annuzzi ch02 (1)
Peter Mburu
 
Begining Android Development
Hayi Nukman
 
Ad

Code crunch

  • 1. CODE CRUNCH QUICKSTART TO ANDROID DEVELOPMENT By: Obed Ademang – GDG, UCC Lead
  • 2. NO ANDROID DEVICE I LIKE APPS Nene Padi Ademang (Obed) NOT A DEVELOPER NO KNOWLEDGE OF PROGRAMMING 2/18/2014 2
  • 3. Overview of the Platform Nene Padi Ademang (Obed) 2/18/2014 3
  • 4. Android Platform  It is a software stack for mobile devices.  It contains:  OS Kernel, system libraries, application frameworks and key apps  Android Software Development Kit (SDK):   Libraries and development tools for creating android applications There are lots of documentation on:  http://developer.android.com/training Nene Padi Ademang (Obed) 2/18/2014 4
  • 5. Applications Application Framework Libraries Android Runtime Linux Kernel Nene Padi Ademang (Obed) 2/18/2014 5
  • 6. Development Nene Padi Ademang (Obed) 2/18/2014 6
  • 7. Android Development Environment  ADT Bundle   Eclipse + ADT Plugin  Latest system image for emulator   Latest Android platform Additional development tools Prerequisite  Windows 7 / Mac OS X (Intel x86) / Various Linux Distros  At least Java SE 6  Knowledge about Java Programming Nene Padi Ademang (Obed) 2/18/2014 7
  • 8. Demo Nene Padi Ademang (Obed) 2/18/2014 8
  • 9. Pros & Cons of the Emulator Pros Nene Padi Ademang (Obed) Cons 2/18/2014 9
  • 10. Advance Features of Emulator  The emulator helps test some advance features like  Network speed/Latency  Battery power  Location coordinates  Emulated calls Nene Padi Ademang (Obed) 2/18/2014 10
  • 11. Demo Nene Padi Ademang (Obed) 2/18/2014 11
  • 12. Overview of Activity Life Cycle and Intents Nene Padi Ademang (Obed) 2/18/2014 12
  • 13. Activity  An application component that provides a screen with which users can interact in order to do something.  An application usually consists of multiple activities that are loosely bound to each other.  Each time a new activity starts, the previous activity is stopped, but the system preserves the activity in a stack (the "back stack").  startActivity()  startActivityForResult() Nene Padi Ademang (Obed) 2/18/2014 13
  • 14. Nene Padi Ademang (Obed) 2/18/2014 14
  • 15. Intents  Explicit intent Intent intent = new Intent(this, SignInActivity.class); startActivity(intent);  Implicit Intent Intent intent = new Intent(Intent.ACTION_SEND); intent.putExtra(Intent.EXTRA_EMAIL, recipientArray); startActivity(intent); Nene Padi Ademang (Obed) 2/18/2014 15
  • 16. Demo Nene Padi Ademang (Obed) 2/18/2014 16
  • 17. Nene Padi Ademang (Obed) 2/18/2014 17

Editor's Notes

  • #5: 1. Primarily for mobile devices but not exclusively
  • #6: 1. Linux Kernel: a. Provides core services such as security, memory process m’gt, File and network I/O, Device drivers b. Android specific services like power m’gt, low memory killer, shared memory etc2. Libraries: a. Written in C/C++, for purposes of performance sensitive and computations b. System C libraries, for bionic libc c. Surface m’ger for display d. Media framework, controls audio and video e. Webkit for browser engine f. Open GL for graphics 3. Runtime: a. Core Java libraries which can be reused to develop apps b. Dalvik Virtual Machine, software that executes android apps.i. App is written ii. Compile to java bytecode iii. DX converts bytecode to a single dexbytecode (classes.dex) iv. DVM executes dexbytecode Was designed to work in resource restrained environment unlike the JVM4. App framework: a. Package manager, a dbase used to store all the apps installed on the device b. Window manager, demo c. Activity manager, manages app life cycle and navigation stack. Demo with music player d. Content provider, dbase that stores shared data among apps eg. Phone system
  • #7: Learn details of the android platformLearn and master the tools used to create the apps.
  • #14: Such as dial the phone, take a photo, send an email, or view a map.Typically, one activity in an application is specified as the "main" activity, which is presented to the user when launching the application for the first time.When a new activity starts, it is pushed onto the back stack and takes user focus. The back stack abides to the basic "last in, first out" stack mechanism, so, when the user is done with the current activity and presses the Back button, it is popped from the stack (and destroyed) and the previous activity resumes.
  • #15: The entire lifetime of an activity happens between the call to onCreate() and the call to onDestroy(). Your activity should perform setup of "global" state (such as defining layout) in onCreate(), and release all remaining resources in onDestroy(). The visible lifetime of an activity happens between the call to onStart() and the call to onStop(). During this time, the user can see the activity on-screen and interact with it. For example, onStop() is called when a new activity starts and this one is no longer visible. Between these two methods, you can maintain resources that are needed to show the activity to the user. The foreground lifetime of an activity happens between the call to onResume() and the call to onPause(). During this time, the activity is in front of all other activities on screen and has user input focus. An activity can frequently transition in and out of the foreground—for example, onPause() is called when the device goes to sleep or when a dialog appears. Because this state can transition often, the code in these two methods should be fairly lightweight in order to avoid slow transitions that make the user wait.