android development
DESCRIPTION
Sneak peak in the vast universe of android developmentTRANSCRIPT
![Page 1: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/1.jpg)
Android
Developmentwww.compwerks.blogspot.com
Disclaimer: this presentation is solely for educational purposes only, all rights are reserved for all the respective owner of each content found in this presentation
![Page 2: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/2.jpg)
Outline
Mobile Applications
Android Platforms
Google Play
System Architecture
Installation
Requirements
IDE
Plugin – Android SDK
Manager
Development
Hello World
ADB
MVC
AVD Manager
Activities
Fragments
Native vs Web vs Hybrid
![Page 3: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/3.jpg)
Android Application
![Page 4: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/4.jpg)
![Page 5: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/5.jpg)
Top 5 Smart Phones for Android
Group Test Results (Android Definitive Guide)
1.Motorola
2.Samsung
3.Alcatel
4.Sony
5.LG
![Page 6: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/6.jpg)
Android Platforms
Each platform release includes system images
that support a specific processor architecture,
such as ARM EABI, Intel x86 or MIPS. Platform
releases also include a system image that contains
Google APIs. The SDK Manager lists available
platform system images under each platform
version header, for example:
ARM EABI v7a System Image
Intel x86 Atom System Image
MIPS System Image
Google APIs
![Page 7: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/7.jpg)
Android
Android 1.0
Cupcake
Donut
Éclair
Froyo
Gingerbread
Honeycomb
Ice cream
sandwich
Jellybean
![Page 8: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/8.jpg)
Google Play Google Play (Google Market)
Android Package File
![Page 9: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/9.jpg)
Publishing an App to google play
It is important that you have an existing
account in google play
You must have a credit card and is willing to
pay 25$ for registration
https://play.google.com/apps/publish/signup/
![Page 10: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/10.jpg)
Publishing an App to google play All applications must be signed. The
system will not install an application on
an emulator or a device if it is not signed.
To test and debug your application, the
build tools sign your application with a
special debug key that is created by the
Android SDK build tools.
When you are ready to release your
application for end-users, you must sign it
with a suitable private key. You cannot
publish an application that is signed with
the debug key generated by the SDK tools.
You can use self-signed certificates to sign
your applications. No certificate authority
is needed.
The system tests a signer certificate's
expiration date only at install time. If an
application's signer certificate expires
after the application is installed, the
application will continue to function
normally.
You can use standard tools — Keytool and
Jarsigner — to generate keys and sign your
application .apk files.
After you sign your application for
release, we recommend that you use the
zipalign tool to optimize the final APK
package.
![Page 11: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/11.jpg)
Publishing an App to google playRequirements
1. A completed Android application
project in Eclipse or an already
created “.apk” file
2. An Internet connection
3. A credit/debit card to pay for
Google Developer license
4. At least two screenshots of the
app, stored on your computer
5. Establishing Your Android File
Keystore
Password
Validity
An Alias
6. Uploading your application in
google console
Uploading your APK file
Adding description
Adding Screen Shot
Store Listing Icon
Filling additional Details
![Page 12: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/12.jpg)
System Architecture
![Page 13: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/13.jpg)
Installation
![Page 14: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/14.jpg)
Requirements
Java Development Kit
Latest version is 8 but
for development use 7
instead
jdk1.7.x
ADT bundle (Android
Development Kit)
Configure System
Environment Variable
Additional Plugins
Virtual System
SDKs for different API
(Application
Programming Interface)
etc…
![Page 15: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/15.jpg)
Download JDK – oracle.com
![Page 16: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/16.jpg)
Installation of JDK
![Page 17: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/17.jpg)
Configuration of JDK to Path
Environment Variables
![Page 18: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/18.jpg)
Configuration of Java to Path
Environment Variables
![Page 19: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/19.jpg)
Configuration of Java to Path
Environment Variables
![Page 20: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/20.jpg)
http://developer.android.com/
![Page 21: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/21.jpg)
Download ADT
![Page 22: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/22.jpg)
Installation of ADT Bundle
Extract the zip file in a selected directory
Contents of the ADT bundle
![Page 23: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/23.jpg)
Configuration of ADT tools to Path
Environment Variables
Find the directory of the platform-tools
And Find the directory of the tools
![Page 24: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/24.jpg)
Configuration of ADT tools to Path
Environment Variables
![Page 25: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/25.jpg)
IDE (Integrated Development
Environment)
Eclipse (Juno)
Go to the eclipse folder and look for
eclipse.exe
Create a shortcut for that to your
desktop
Plugin Installation (SDKs for each API,
Virtual System, etc)
![Page 26: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/26.jpg)
Eclipse
![Page 27: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/27.jpg)
Plugin Installation – Android
SDK Manager
The Android SDK separates tools, platforms, and other
components into packages you can download using the
SDK Manager.
For example, when the SDK Tools are updated
or a new version of the Android platform is released,
you can use the SDK Manager to quickly download them to
your environment.
![Page 28: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/28.jpg)
Plugin Installation – Android SDK
Manager
![Page 29: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/29.jpg)
Plugin Installation – Android SDK
Manager
![Page 30: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/30.jpg)
Creating your first Project - HelloWorld
![Page 31: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/31.jpg)
Model View Controller (MVC)
MODEL CONTROLLER VIEW
Manifest java xml
![Page 32: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/32.jpg)
![Page 33: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/33.jpg)
![Page 34: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/34.jpg)
Android SDK Manager and
Android Virtual Device Manager
![Page 35: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/35.jpg)
![Page 36: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/36.jpg)
AVD
An Android Virtual Device (AVD) is
an emulator configuration that lets
you model an actual device by
defining hardware and software
options to be emulated by the
Android Emulator.
![Page 37: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/37.jpg)
Android Debug Bridge Android Debug Bridge (adb) is a versatile command line
tool that lets you communicate with an emulator instance
or connected Android-powered device. It is a client-server
program that includes three components:
A client, which runs on your development machine. You can
invoke a client from a shell by issuing an adb command.
Other Android tools such as the ADT plugin and DDMS also
create adb clients.
A server, which runs as a background process on your
development machine. The server manages communication
between the client and the adb daemon running on an
emulator or device.
A daemon, which runs as a background process on each
emulator or device instance.
![Page 38: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/38.jpg)
An activity is a single,
focused thing that
the user can do, it
represents a single
screen in your app
![Page 39: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/39.jpg)
IntentA.k.a. intention to do something, enable an application to transfer from one activity to another
![Page 40: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/40.jpg)
Fragments
A Fragment represents a
behaviour or a portion of user
interface in an Activity
![Page 41: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/41.jpg)
![Page 42: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/42.jpg)
![Page 43: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/43.jpg)
Native vs Web vs Hybrid
Native
Web
Performance
Platform Independence
![Page 44: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/44.jpg)
Native vs Web vs Hybrid
Hybrid
![Page 45: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/45.jpg)
Web
![Page 46: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/46.jpg)
![Page 47: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/47.jpg)
Hybrid
![Page 48: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/48.jpg)
Phonegap – html5, javascript, css
![Page 49: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/49.jpg)
Phonegap – html5, javascript, css
![Page 50: Android Development](https://reader034.vdocuments.us/reader034/viewer/2022051513/5476e4c7b4af9fd6028b49f9/html5/thumbnails/50.jpg)
Thank You!
Disclaimer: this presentation is solely for educational purposes only, all rights are presereved for all the respective owner of each content found in this presentation