code crunch
Post on 19-May-2015
121 Views
Preview:
TRANSCRIPT
CODE CRUNCH QUICKSTART TO ANDROID DEVELOPMENT
By: Obed Ademang – GDG, UCC Lead
04/12/2023Nene Padi Ademang (Obed) 2
NO ANDROID DEVICE
NO KNOWLEDGE
OF PROGRAMMI
NG
NOT A DEVELOPER
I LIKE APPS
04/12/2023Nene Padi Ademang (Obed) 3
Overview of the Platform
04/12/2023Nene Padi Ademang (Obed) 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
04/12/2023Nene Padi Ademang (Obed) 5
Applications
HOME CONTACT PHONE BROWSER …
Application Framework
PACKAGE MANAGER
TELEPHONY MANAGER
RESOURCE MANAGER
LOCATION MANAGER
NOTIFICATION MANAGER
ACTIVITY MANAGER
WINDOW MANAGER
CONTENT PROVIDERS
VIEW SYSTEM
Linux Kernel
KEYPAD DRIVER
AUDIO DRIVER
WiFi DRIVERPOWER
MANAGEMENT
DISPLAY DRIVER
CAMERA DRIVER
FLASH MEMORY
BINDER DRIVER
Libraries
OPEN GL/SG FREETYPE WEBKIT
SGL libc
SOFTWARE MANAGER
MEDIA FRAMEWORK
SQLITE
SSL
Android Runtime
CORE LIBRARIES
DALVIK VIRTUAL MACH.
04/12/2023Nene Padi Ademang (Obed) 6
Development
04/12/2023Nene Padi Ademang (Obed) 7
Android Development Environment
ADT Bundle
Latest Android platform
Eclipse + ADT Plugin
Latest system image for emulator
Additional development tools
Prerequisite
Windows 7 / Mac OS X (Intel x86) / Various Linux Distros
At least Java SE 6
Knowledge about Java Programming
04/12/2023Nene Padi Ademang (Obed) 8
Demo
04/12/2023Nene Padi Ademang (Obed) 9
Pros & Cons of the Emulator
Pros Cons
04/12/2023Nene Padi Ademang (Obed) 10
Advance Features of Emulator
The emulator helps test some advance features like
Network speed/Latency
Battery power
Location coordinates
Emulated calls
04/12/2023Nene Padi Ademang (Obed) 11
Demo
04/12/2023Nene Padi Ademang (Obed) 12
Overview of Activity Life Cycle and Intents
04/12/2023Nene Padi Ademang (Obed) 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()
04/12/2023Nene Padi Ademang (Obed) 14
04/12/2023Nene Padi Ademang (Obed) 15
Intents
Explicit intent
Implicit Intent
Intent intent = new Intent(this, SignInActivity.class);startActivity(intent);
Intent intent = new Intent(Intent.ACTION_SEND);intent.putExtra(Intent.EXTRA_EMAIL, recipientArray);startActivity(intent);
04/12/2023Nene Padi Ademang (Obed) 16
Demo
04/12/2023Nene Padi Ademang (Obed) 17
THANK YOU
top related