Sei sulla pagina 1di 112

WAP, OHA, Android Overview

and its Architecture


Prepared by. Mrs Reetu Gupta
IT, DYPCOE, AKurdi

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


OHA (Open Handset Alliance)
The Open Handset Alliance (OHA)
consortium of 84 firms to
Develop open standards for mobile devices.
The OHA was established on 5 November 2007, led
by Google with 34 members
OHA members are
mobile handset makers
application developers
some mobile carriers
chip makers

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
WAP Protocol

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


WAP Protocol
Application Layer
Wireless Application Environment (WAE).
Interest to content developers
contains
device specifications
content development programming languages, WML, and WMLScript.
Session Layer
Wireless Session Protocol (WSP).
WSP has been designed by the WAP Forum
to provide fast connection suspension and reconnection.
Transaction Layer
Wireless Transaction Protocol (WTP).
WTP runs on top of a datagram service, such as User Datagram Protocol
(UDP)
Part of the standard suite of TCP/IP protocols

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


WAP Protocol
Security Layer
Wireless Transport Layer Security (WTLS).
WTLS incorporates security features
based upon Transport Layer Security (TLS) protocol standard.
includes
data integrity checks
privacy, service denial
authentication services.

Transport Layer
Wireless Datagram Protocol (WDP).
The WDP allows WAP to be bearer-independent

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


What is Android?
Android
software stack for mobile devices that includes an
operating system, middleware and key applications.
open source operating system, created by Google
specifically for use on mobile devices (
Based on Linux based (2.6 kernel)
Can be programmed in C/C++
But most app development is done in Java (Java access to
C Libraries via JNI (Java Native Interface))
Supports Bluetooth, Wi-Fi, and 3G and 4G networking

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


What is API level?
API Level is an integer value that uniquely identifies the
framework API revision offered by a version of the
Android platform.

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


Android Version
Version
Code name Initial release date API level Support status
number
(none) 1.0 September 23, 2008 1 Unsupported
(none) 1.1 February 9, 2009 2 Unsupported
Cupcake 1.5 April 27, 2009 3 Unsupported
Donut 1.6 September 15, 2009 4 Unsupported
Eclair 2.0 2.1 October 26, 2009 57 Unsupported
Froyo 2.2 2.2.3 May 20, 2010 8 Unsupported
Gingerbread 2.3 2.3.7 December 6, 2010 9 10 Unsupported
Honeycomb 3.0 3.2.6 February 22, 2011 11 13 Unsupported
Ice Cream Sandwich 4.0 4.0.4 October 18, 2011 14 15 Unsupported
Jelly Bean 4.1 4.3.1 July 9, 2012 16 18 Unsupported
KitKat 4.4 4.4.4 October 31, 2013 19 Unsupported
Lollipop 5.0 5.1.1 November 12, 2014 21 22 Unsupported
Marshmallow 6.0 6.0.1 October 5, 2015 23 Supported
Nougat 7.0 7.1.1 August 22, 2016 24 25 Supported

Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi


Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Prepared By: Mrs.Reetu Gupta,IT, DYPCOE,AKurdi
Android Wireless Application Development Lauren Darcey

Chapter 1 : An Overview of Android

Point Wise Notes

Note: Points marked in Red are Important

Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi


First Generation Mobile Phones

Motorola DynaTAC 8000X was the first commercially available cell phone.
Motorola DynaTAC 8000X also called The Brick
First-generation mobile phones were just too expensive.
First-generation mobile phones Designed and Developed by the handset manufacturers.
First Generation Manufacturers didnt want to expose the internal workings of their
handsets, so they usually developed the phone software in-house
As a developer, if you werent part of this inner circle, you had no opportunity to write
applications for the phones
The handset manufacturers
o didnt have the motivation / resources to build every application users wanted.
o Needed some way to provide a portal for entertainment and information services
without allowing direct access to the handset.
Hence Internet was selected as Best Option to provide entertainment and information
services

Wireless Application Protocol (WAP)

First clamshell phone the Motorola StarTAC was released in 1996.


Nokia first slider phones, the 8110referred to as The Matrix Phone
With low-resolution screens and limited storage and processing power, these phones
couldnt handle the data-intensive operations required by traditional web browsers.
WAP was a stripped-down version of HTTP
HTTP is the backbone protocol of the Internet.
WAP browsers were designed to run within the memory and bandwidth constraints of
the phone
WAP sites pages written in a markup language called Wireless Markup Language
(WML).
WAP pages were simple in Design
The WAP solution was great for
o Handset Manufacturers - write one WAP browser
rely on developers to come up with user content
o Mobile Operators. Provided a custom WAP portal, directing their subscribers
to the content they wanted to provide
o Developers
Chance to develop content for phone users
Payment and verification were handled through various premium priced delivery
mechanisms
Short Message Service (SMS),
Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi
Enhanced Messaging Service (EMS),
Multimedia Messaging Service (MMS),
WAP Push.
Critics began to call WAP Wait and Pay.
Smartphone devices Operating System
o Palm OS (now Garnet OS)
o RIM BlackBerry OS.
Sun Microsystems
o Launched J2ME also known as Java Micro Edition [Java ME]).
Qualcomm
o Developed and licensed : Binary Runtime Environment for Wireless
(BREW).
Nokia, Sony Ericsson, Motorola, and Samsung
o Symbian OS,
Apple
o iPhone OS

The Open Handset Alliance

Internet model allows users to choose between freeware, shareware, and paid software.
The Open Handset Alliance (OHA) was formed in November 2007
The OHA is a business alliance comprised of many of the largest and most successful
mobile companies on the planet
OHA members
o chip makers,
o Handset manufacturers
o software developers
o service providers
Andy Rubin has been credited as the father of the Android platform
Andy Rubin company, Android Inc.,was acquired by Google in 2005.
Googles involvement in the Android project has been so extensive that the line between
who takes responsibility for the Android platform (the OHA or Google) has blurred.
Google hosts the Android open source project
Google provides online Android documentation, tools, forums, and the Software
Development Kit (SDK) for developers
Manufacturers: Designing the Android

Handset Manufacturers :Samsung, Motorola, HTC, and LG,


Semiconductor Companies: Intel, Texas Instruments, NVIDIA, Qualcomm.
The first shipping Android handsetthe T-Mobile G1was developed by handset
manufacturer HTC with service provided by T-Mobile, October 2008.
Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi
The T-Mobile G1 was the first commercial Android device on the market

Android Platform Differences

Android is hailed as the first complete, open, and free mobile platform
o Complete
Secure OS and Rich Application Development Opportunities
o Open
Provided through Open Source Licensing
Provides Unprecedented Access to Handset Features for developing apps
o Free
Application Development is Free. No royalty fees, No Licensing, No
Membership Fees, No certification fees, No testing, No Signing in
The Android mascot is a little green robot.
Androids SDKs are named alphabetically after sweets.
Android is licensed under GNU General Public License Version 2 (GPLv2).
Android framework is distributed under the Apache Software License ASL/Apache2)
Apache Software License (ASL/Apache2), allows distribution of both open- and closed-
source derivations of the source code.
There are no upfront costs to developing Android applications.
Latest Version of Android is ___________________________________________
The Android SDK and tools are freely available.
Eclipse IDE to design and develop Android applications.
Android applications can be developed on operating systems:
o Windows XP (32-bit) or Vista (32-bit or 64-bit)
o Mac OS X 10.5.8 or later (x86 only)
o Linux (tested on Linux Ubuntu 8.04 LTS, Hardy Heron)
Android applications are written in a well-respected programming language: Java.
OpenGL Embedded Systems (OpenGL ES) Library in Android for Graphics
SQLite - Library in Android for Database
All Android applications use the same libraries.
Androids vigorous application security model helps protect the user and the system from
malicious software.

Android Market

Android applications can be distributed as follows


o Google : Android Market : a generic Android application
store with a revenue-sharing model.
o Handango.com : Addeds Apps in catalogue of billing models and revenue-sharing
model.

Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi


Each new version of the Android SDK has provided a number of substantial improvements
to the platform.

Android Platform
It is an Operating System :Used to develop mobile Applications
The handset runs a Linux operating system upon which Android applications are
executed in a secure fashion.
Each Android application runs in its own virtual machine (
Android applications are managed codehence fewer instances of device corruption (also
called bricking the phone, or rendering it useless).
Android Architecture

Linux 2.6 kernel


o handles core system services and
o acts as a hardware abstraction layer (HAL) between the physical hardware of the
handset and the Android software stack.
o Kernel functions
Enforcement of application permissions and security
Low-level memory management
Process management and threading
Network stack
Display, keypad input, camera,Wi-Fi, Flash memory, audio, and binder (IPC)
driver access

Android Application Runtime Environment


o Each Android application runs separate process, with own instance of the Dalvik
virtual machine (VM).
o Dalvik VM
Designed based on the Java VM.
Small memory footprint
Multiple instances of the Dalvik VM can run concurrently on the handset.

Security and Permissions


o Integrity of the Android platform is maintained through a variety of security
measures.
o Measures help ensure
Users data is secure
Device is not subjected to malware.

Applications as Operating System Users


o On Application installed, the operating system creates a new user profile
associated with the application.
o Each application runs as a different user, with its own private files on the file
system, a user ID, and a secure operating environment.
o Application executes in its own process with its own instance of the Dalvik VM
and under its own user ID on the operating system
Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi
Explicitly Defined Application Permissions
o Access shared resources Android applications register for the specific privileges
they require.
o Applications also require permission to access shared data
o Application can declare any number of different permission types,
read-only
read-write permissions

Limited Ad-Hoc Permissions


o Content Provider Applications provide on-the-fly permissions to other
applications :using ad-hoc granting and revoking of access to specific resources
using Uniform Resource Identifiers (URIs).
Application Signing for Trust Relationships
o Android applications packages are signed with a certificate, authenticity.
o The private key for the certificate is held by the developer.
o It enables developer to control which applications can grant access to one another
on the system.
o No certificate authority is necessary; self-signed certificates are acceptable
.
Marketplace Developer Registration
o Publish applications Android Market, developers must create a developer
account.
o The Android Market is managed closely and no malware is tolerated.

Developing Android Applications


o Android SDK provides an extensive set of application programming interfaces
(APIs).

Android Programming Language Choices


o Android applications are written in Java.
o If your application must rely on another language such as C or C++ integrate it
using the Android Native Development Kit (NDK).

No Distinctions Made Between Native and Third-Party Applications


o No distinction between native applications and developer-created applications on
the Android platform.
o Application appropriate permissions, have the same access to core libraries and the
underlying hardware interfaces.

Commonly Used Packages


o Developers use familiar class libraries exposed through Androids Java packages
o Android packages include support for
Common user interface widgets (Buttons, Spin Controls,Text Input)
User interface layout
Secure networking and web browsing features (SSL,WebKit)
Structured storage and relational databases (SQLite)
Powerful 2D and 3D graphics (including SGL and OpenGL ES)
Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi
Audio and visual media formats (MPEG4, MP3, Still Images)
Access to optional hardware:location-based services (LBS),Wi-Fi, Bluetooth,
and hardware sensors

Android Application Framework


o Android application framework provides everything necessary to implement your
average application.
o Android application lifecycle involves :
Activities are functions the application performs.
Groups of views define the applications layout.
Intents inform the system about an applications plans.
Services allow for background processing without user interaction.
Notifications alert the user when something interesting happens.
o Android applications interact with the operating system and underlying hardware
using a collection of managers.
o Each manager is responsible for keeping the state of some underlying system
service.
Location Manager that facilitates interaction with the location-based services
available on the handset.
ViewManager and WindowManager manage user interface fundamentals.
o Applications interact with one another using or acting as a ContentProvider.
E.g .Built-in applications such as the Contact manager are content providers,
allowing third party applications to access contact data and use it in an infinite
number of ways.

Prepared By: Mrs. Reetu Gupta, IT, DYPCOE, Akurdi


Chapter 2: Setting Up Your Android
Development Environment

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Setting Up Your Android Development Environment
Tools : Developing Android Applications
Explore: Android Software Development Kit (SDK)
Installation
All it has to Offer

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your Development
Environment

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your Development Environment
Android Application : Configure Development
Environment : Java Development
Application Developed :
Windows
Macintosh
Linux

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Development: Required Software
Java Development Kit (JDK) Version 5 or 6,
http://java.sun.com/javase/downloads/index.jsp.
Java IDE: Eclipse along with its JDT plug-in,
http://www.eclipse.org/downloads/.
Android SDK, tools and documentation,
http://developer.android.com/sdk/index.html.
Android Development Tools (ADT) plug-in for Eclipse
http://developer.android.com/sdk/eclipse-adt.html.Although

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your OS (Operating
System) for Device Debugging

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your OS (Operating System) for Device Debugging

Install and Debug Application on Device : Configure


OS to Access Pone Via USB Debugging.
Mac OS: automatically
Windows: Appropriate USB Driver Installation
Required

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your Android
Hardware for Debugging

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Configuring your Android Hardware for Debugging

Android Devices : Debugging Disabled : Default


Enable Debugging: Via USB: Develop & Run Apps on device
Step 1: Enable device:
Allow installation from other than Android Market: User Designed
Unpublished App. Bcoz Published App on Google Market
Home-Menu-Settings-Application: (Check: Unknown Source)
Step 2: Enable Debugging Settings
Home-Menu-Settings-Application-Development
It Enables Following Option:
USB Debugging : Enable debugging Via USB
Stay Awake : Phone not sleep till USB Connected
Allow Mock Location : Send Mock Location to phone. For Apps Using LBS(Location Based
Services)

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Upgrading your Android SDK

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Upgrading your Android SDK

SDK updated Time to Time


Easily Updated : Android SDK / AVD Manager
Changes Include
addition, update removal of feature
Package name changes
Updated tools
Each New SDK: Useful documents
An Overview of changes: brief description of major
changes
An API Diff Report : List of Specific Changes
Release Notes: Issues with current SDK
Prepared By : Mrs. Reetu Gupta, IT
Department, DYPCOE, Akurdi
Exploring your Android SDK

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Exploring your Android SDK

SDK 5 major Components


1. Android SDK License Agreement
2. Android Documentation
3. Application framework
4. Tools
5. Sample Appications

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Part I: Android SDK License
Agreement

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android SDK License Agreement
Agreement Between developer and Google
Rights Granted : grants
limited,
worldwide,
royalty-free,
non-assignable, and n
on-exclusive license to use the SDK solely to develop applications for the
Android platform.
Google still hold all copyrights and intellectual property rights to the
material.
SDK usage : not make derivative works from the SDK or distribute
the SDK on any device

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android SDK License Agreement
SDK changes and Backward Compatibility:
Android Application Developer Rights :You retain all rights and
responsibility to any Android software you develop with the SDK
Android Application Privacy requirements :
Your applications will protect the privacy and legal rights of. its users
Application uses or accesses personal and private information about the
user
Then application will provide an adequate privacy notice and
keep that data stored securely.
Android Application Malware requirements
You agree not to write disruptive applications or malware.
Additional terms for specific Google APIs:
You must agree to these additional terms before using those specific APIs
Develop at your Own Risk
Any harm due to developing with the Android SDK is your
Prepared By : Mrs. Reetu Gupta, IT
own fault and not Googles.
Department, DYPCOE, Akurdi
Part II: Reading Android SDK
Documentation

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Prepared By : Mrs. Reetu Gupta, IT
Department, DYPCOE, Akurdi
2. Reading Android SDK Documentation
Local copy : /docs folder in disc
Documentation : 7 Main Sections
1. Home
2. SDK
3. Dev Guide
4. Reference
5. Resources
6. Videos
7. Blog

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
2. Reading Android SDK Documentation
1. Home Tab : Information about
Developer Announcements
Important Links: Latest topic in android development

2. SDK Tab : Information about


Different SDK versions available
Android Native Development Kit (NDK)
Android SDK release notes

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
2. Reading Android SDK Documentation
3. Dev Guide Tab: Information about
Introduces Android Platform
Best Practices for android application design and
development
Publishing applications
4. Reference Tab :
Drill down listing of Android APIs
Detailed Coverage of specific classes and interfaces

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
2. Reading Android SDK Documentation
5. Resources Tab : Access to online videos
Access to Android technical articles and tutorials
link to Android Community Online
Groups
Mailing list
Official Twitter Feed
Access to Sample Applications provided with
Android SDK

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
2. Reading Android SDK Documentation
6. Videos Tab : Access to online videos
Pertaining to Android Development including videos abt:
Platform
Developer Tips
Android Development Session from Annual Google I/O
Conference
Developer Sandbox Interviews
7. Blog Tab :
Access to online blog Published by of Android Development
Team
Announcements : SDK Releases
Helpful Development Tips
Upcoming Android Events
Prepared By : Mrs. Reetu Gupta, IT
Department, DYPCOE, Akurdi
Part III: Exploring Android
Application Framework

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
3. Exploring Android Application Framework
Application Framework: android.jar file
Android SDK: Several important packages

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
3. Exploring Android Application Framework

Google APIs Add-on: google.*


Extension to Android SDK
Helps Development Using Google Maps / Google APIs and
Services.
Using Google API requires : Google Map in your App
agreement to additional terms of service
registration for an API key.

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Part IV : Getting to Know
Android Tools

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
4. Android Tools
ADT Plug-In
Eclipse
DDMS (Dalvik Debug Monitor Sever)
Android SDK and AVD Manager
Android Emulator
Android Debug Bridge (ADB)
Android Hierarchy Viewer
Other Tools

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Tools
Android SDK : Application Development Tools for
Design
Develop
Debug
Deploy
Eclipse Plug-In
incorporates tools seamlessly in development environment
provides wizards for creating and debugging Android
Projects.

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Tools
ADT Plug-In
Settings : EclipseWindowsPreferencesAndroid
Set Disk Location: Path where Android SDK and Tools are
installed
Build Settings
Debugging Settings

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Tools
ADT Plug-In
Adds Useful Functionalities : Default Eclipse IDE
New Buttons: Toolbar
Launch Android SDK and AVD Manager

Create a new project using the Android Project Wizard


Create a new test project using Android Project Wizard
Create a new Android XMl resource file
After Application design : ADT Used: launch wizard to
package and sign your Android Application for Publication

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
DDMS : Dalvik Debug Monitor Server
Eclipse Perspective: Debugging Android Applications
Switch DDMS View
Method 1: EclipseWindowOpen PerspectiveDDMS
Method 2: changing to DDMS perspective in top right corner of
screen

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android SDK And AVD Manager
SDK + AVD :
Integrated into Eclipse
Two major Functions
Management of Multiple Versions of SDK on
development Machine
Management of the Developers Android Virtual Device
(AVD) Configurations.

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android SDK And AVD Manager

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android SDK And AVD Manager
Developer :Take care of Applications and their SDK
versions :
Android SDK And AVD Manager : Facilitate Android
Development t Across Multiple Platform Version
Simultaneously.
New SDK is Released
Android SDK And AVD Manager
Download and Install New SDK Version
Update your Existing Tools Providing
Backward Compatibility with Older Versions.

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
AVD Manager
Manages AVD Configurations.
Mange Application : Emulator: Configure AVD
AVD Profile
Device Type : Emulator Simulate
Which Android Platform to Support
Specify Screen Size and Orientation
Emulator : SD card ? If yes What Capacity

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Emulator

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Emulator
Important Tool : Android SDK
Frequently : Design and development Android Applications
Runs :Computer
Emulator
Load Android Application
Test
Debug Them
Generic Device : is not tied to any specific phone
configuration
Hardware & Software Configuration Detail that Emulator
Simulate in AVD Configuration.

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Dalvik Debug Monitor Server DDMS

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Dalvik Debug Monitor Server DDMS
Command-Line Tool : Integrated in Eclipse IDE : Perspective
Direct Access : Device
Emulator Virtual Device
Actual Physical Device
USE DDMS
View and Manage
Process and Threads Running on DEVICE
View Heap DATA
Attach to Processes to Debug
Variety of Other Tasks

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Debug Bridge ADB
Client Server Tool :
Enables Developer :
Debug Android Code (Emulator + Device)
Using Standard Java IDE Eclipse
DDMS + Android Development Plug-In for Eclipse: Use ADB
Facilitate interaction between the development environment and
the device or emulator
Developers : Use ADB
interaction with Device File System
Install Android Application Manually
Issue Shell Commands

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Debug Bridge ADB
Application Exerciser Monkey Commands
generate Random Inputs and System Events to Stress Test your
Application
Developers : Important ADB Aspect is
Logcat : ADB Logging System

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Hierarchy Viewer

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Hierarchy Viewer
Visual Tool
Illustrates / Explains
Layout Component Relationship
Help developers
Design and Debug User Interfaces
Inspect View Properties
Develop Pixel Perfect Layout

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Other Tools
Draw Nine-Patch Tool :
Design Stretchable PNG images : useful for supporting
different screen sizes
Layoutopt Tool :
Optimize user Interface for Performance

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Part V : Exploring Android
Sample Applications

Prepared By : Mrs. Reetu Gupta, IT


Department, DYPCOE, Akurdi
Android Sample Applications
Android Provides : Some Sample and Demo
Applications
Located In : / Sample Subdirectory of Android SDK
Resources Tab : Online Sample Applications
Some Sample Applications Are
ApiDemos: (Demonstration of API)
Snake : (Game : Demonstrate Bitmap drawing and key
events)
NotePad: (List Application: Demonstrate DataBase Access
and Live Folder Functionality)
LunarLander (Game : Demonstrate Drawing and
Animation
Prepared By : Mrs. Reetu Gupta, IT
Department, DYPCOE, Akurdi
Android Installation Steps
Prepared By: Mrs. Reetu Gupta,
IT, DYPCOE, Akurdi
Method 1
Step 1: Install JDK (Java Development Kit)
Step 2: Set Environment Variable
computerpropertiesadvanced system settingsenvironment
variables---pathset complete path till jdk folder:
e.g. C:\Program Files\Java\jdk1.8.0_25
computerpropertiesadvanced system settings
environment variables-
New Variable: Set variable name as JAVA_HOME:
Path : Set path as JDK folder Location (C:\Program
Files\Java\jdk1.8.0_25)
New Variable: Set variable name as JRE_HOME:
Path : Set path as JRE folder Location (C:\Program
Files\Java\jre1.8.0_25)
Method 1 Contd..
Note: Step 2 can be avoided if java is successfully installed. To check
this
-type command : Java in command prompt
- java options are shown: successful installed

Step 3 : Install Android SDK (Software Development Kit)


Step 4: Install IDE (eclipse)
Step 5: File-New-Android Project
Method 2
Install JDK (Java Development Kit)
Install Android Studio Bundle
Step 1 - System Requirements
Start your Android application development on following operating systems

Microsoft Windows 10/8/7/Vista/2003 (32 or 64-bit)

Mac OS X 10.8.5 or higher, up to 10.9 (Mavericks)

GNOME or KDE desktop

Required tools to develop Android applications are

Java JDK5 or later version

Java Runtime Environment (JRE) 6

Android Studio

Step 2 - Setup Android Studio


Overview
Android Studio is the official IDE for android application development.It
works based on IntelliJ IDEA, You can download the latest version of
android studio from Android Studio 2.2 Download, If you are new to
installing Android Studio on windows,you will find a file, which is named
as android-studio-bundle-143.3101438-windows.exe.So just download and
run on windows machine according to android studio wizard guideline.
If you are installing Android Studio on Mac or Linux, You can download the
latest version from Android Studio Mac Download,or Android Studio Linux
Download, check the instructions provided along with the downloaded file
for Mac OS and Linux. This tutorial will consider that you are going to setup
your environment on Windows machine having Windows 8.1 operating
system.

Installation
So let's launch Android Studio.exe,Make sure before launch Android Studio,
Our Machine should required installed Java JDK. To install Java JDK,take a
references of Android environment setup

Once you launched Android Studio, its time to mention JDK7 path or later
version in android studio installer.
Below the image initiating JDK to android SDK
Need to check the components, which are required to create applications,
below the image has selected Android Studio, Android SDK, Android
Virtual Machine and performance(Intel chip).

Need to specify the location of local machine path for Android studio and
Android SDK, below the image has taken default location of windows 8.1
x64 bit architecture.
Need to specify the ram space for Android emulator by default it would take
512MB of local machine RAM.
At final stage, it would extract SDK packages into our local machine, it
would take a while time to finish the task and would take 2626MB of Hard
disk space.

After done all above steps perfectly, you must get finish button and it gonna
be open android studio project with Welcome to android studio message as
shown below
You can start your application development by calling start a new android
studio project. in a new installation frame should ask Application name,
package information and location of the project.

After entered application name, it going to be called select the form factors
your application runs on, here need to specify Minimum SDK, in our tutorial,
I have declared as API23: Android 6.0(Mashmallow)
The next level of installation should contain selecting the activity to mobile,
it specifies the default layout for Applications
At the final stage it going to be open development tool to write the
application code.

Step 3 - Create Android Virtual Device


To test your Android applications, you will need a virtual Android device. So
before we start writing our code, let us create an Android virtual device.
Launch Android AVD Manager Clicking AVD_Manager icon as shown below
After Click on a virtual device icon, it going to be shown by default virtual
devices which are present on your SDK, or else need to create a virtual
device by clicking Create new Virtual device button

If your AVD is created successfully it means your environment is ready for


Android application development. If you like, you can close this window
using top-right cross button. Better you re-start your machine and once you
are done with this last step, you are ready to proceed for your first Android
example but before that we will see few more important concepts related to
Android Application Development.

Hello Word Example


Before Writing a Hello word code, you must know about XML tags.To write
hello word code, you should redirect
to App>res>layout>Activity_main.xml
To show hello word, we need to call text view with layout ( about text view
and layout, you must take references at Relative Layout and Text View ).

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context=".MainActivity">

<TextView android:text="@string/hello_world"
android:layout_width="550dp"
android:layout_height="wrap_content" />
</RelativeLayout>

Need to run the program by clicking Run>Run App or else need to


call shift+f10key. Finally, result should be placed at Virtual devices as
shown below
FPL-2: Unit 4 : Android Abbreviations

Android Abbreviations
Sr.No Abbreviation Full Form
1. ADB Android Debug Bridge
2. ADC Android Developer Challenge
3. ADT Android Development Tools
4. API Application Programming Interface
5. APIs Application Programming Interfaces
6. ART Android Run Time
7. ASL Apache Software License
8. AVD Android Virtual Device
9. BREW Binary Runtime Environment for Wireless
10. DVM Dalvik Virtual Machine
11. DDMS Dalvik Debug Monitor Server
12. EMS Enhanced Messaging Service
13. GPLv2 General Public License Version 2
14. HAL Hardware Abstraction Layer
15. IDE Integrated Development Environments
16. Java ME Java Micro Edition
17. JDK Java Development Kit
18. JNI Java Native Interface
19. LBS Location Based Services
20. MMS Multimedia Messaging Service
21. NDK Native Development Kit
22. OHA Open Handset Alliance
23. OpenGL Open Graphics Library
24. OpenGL ES OpenGL Embedded Systems
25. RIM Research in Motion
26. SDK Software Development Kit
27. SMS Short Message Service
28. SSL Secure Socket Layer
29. URI. Uniform Resource Identifiers
30. VM Virtual Machine
31. WAP Wireless Application Protocol
32. WML Wireless Markup Language
33. WAE Wireless Application Environment
34. WSP Wireless Session Protocol
35. WTLS Wireless Transport Layer Security
36. TLS Transport Layer Security

Prepared By: Reetu Gupta, IT, DYPCOE, Akurdi Page 1


UNIT-IV

Android

1. which of the following is an life cycle activity of Android?


A Oncreate() B Onstart() C Onresume() D - All of the above*

2. How many sizes are supported by Android of handset/screen?


A - Android supported all sizes B - Android does not support all sizes
C - Android supports small, normal, large and extra-large sizes* D - Size is
undefined in android

3. 3 What is APK in android?


A - Android packages B - Android pack C - Android packaging kit D Android
application package.*

4. What are the functionalities of Binder services in android?


A - Binder is responsible to manage the thread while using aidl in android
B - Binder is responsible for marshalling and un-marshalling of the data
C-A&B * D - Binder is a kind of interface E - None of the above

5. Web browser available in android is based on


A. Chrome B. Firefox C. Open-source Webki*t D. Opera

6. . Android supports which features.


A. Multitasking B. Bluetooth C. Video calling D. All of the above*

7. Which company developed android?


A. Apple B. Google C. Android Inc.* D. Nokia
Windows B. Linux* C. Macintosh D. Unix

8. First android tablet was


A.LG Optimus Pad B.HTC Flyer* C. Samsung Galaxy tab D.
Motorola zoom

9. Which among these is not a part of Android native libraries ?


A. Webkit B. Dalvik* C. sqlite D. OpenGL

10. Who hold the copyrights of Android SDK ?


A. OHA B. HTC C. Google* D. Microsoft

11. 11. Android SDK documentation is divided into how many sections?
A.7* B. 5 C.8 D. 4

12. 12. Who holds all rights of any Android software developed by a developer with the SDK
A. Developer* B. Google C. OHA D. Andy Rubi
13. 13What are the layouts available in android?
A. Linear Layout B. Frame Layout C. Table Layout D. Relative Layout
E. ALL*

14. What is sleep mode in android?


A. Only Radio Interface Layer and alarm are in active mode*
B. Switched off
C. ir plane mode
D. None of the above
E.
15. Android is founded in
A.2001 B. 2005 c. 2011 **d. 2003

16. What does AOSP stand for?


A Android operating system project B Android open stack programming
C. Android open source protocol D Android open source project**

17. The first commercially available smartphone running the android was by which
company?
A HTC ** B. Samsung C. Motorola D. LG

18. The first completely 64-bit compatible version of android was


A Android 5.0 Lollipop ** B. Android 4.0 Ice cream sandwich
C Android 3.0 Honeycomb D. Android 2.3 Gingerbread

19. Which version of Android is code-named Jelly-bean?


A4.1 B. 4.2 C. 4.3 D All of these**

20. Latest version of android is?


A Marshmallow B Nougat** C Kitkat D. Lollipop

21. Android is Linux based operating system


True** b. False

22. Which file creates after completing android code?


.java b. .apk ** c. .class d. .exe

23. DVM stands for?


Dev Vritual machine b. Dalvik virtual machine** c. Drupal VM d. None

24. Which database used in Android?


OpenGLS b. SQLite** c. SQL d. DBMS
25. Android is licensed under which open source licensing license?
A. Gnu's GPL B. Apache/MIT** C OSS D. Sourceforge

26. Android front end programming is developed in which language?


A. HTML B. XML** C CSS D. XHTML

27. IDE stands for?


A. Inverted Development environment B Integrated Development environment **
Informative Development environment d. Intended Development environment

28. OHA Stands for?


A. A. Open Hire Application b. Open handset application**
c. Open handset alliance d. none

29. Leader of OHA?


A. a. Motorola b. LG c. Google** d. Microsoft
B.
30. SMS stand for?
a. Simple messaging service b. Short messaging service **
c. Simple message standard d. none

31. EMS stands for?


a. Enriched messaging service b. Enhanced messaging service** c. Embedded messaging
service

32. Android developed by?


A. Mark Chan b. Elmer c. Andy Rubin** d. Ron Macroffy
33. WAP stands for
A. A. Wired Application protocol b. Wireless Application protocol** c. wide
Application protocol

34. WAP session layer is responsible for


A. A. creates session between 2 clients b. creates session between
client & server
B. C. transfers packets from client to server d. all of the above

35. WAP is used to


A. A. Access internet from desktop b. Access internet from mobiles**
B. C. Transfer and encrypt data d. creating session
36. Android installation involves
A. A. JDK+Android studio b. JDK+SDK+android studio
C.JDK+SDK+IDE** d. Android studio bundle

37. WAP is middleware between


A. Two Clients B. Mobile Client & Web server** C. Two servers D. Two mobiles

38. Which language is used at backend in android development?


A. A. C++ B. Python C. Java** D.XML

39. Android NDK stands for


A. Native development kit B. National development kit
C. Narrow development kit D. Numerous development kit
FPL-II
UNIT-IV (ANDROID)
QUESTION BANK

1) Which of the following is not an Android component (i.e. a point from which the
system can enter your application)?
a. Service b. Activity c. Layout d. Content Provider

2) During an Activity life-cycle, what is the first callback method invoked by the
system?
a. onStop() b. onStart() c. onCreate() d. onRestore()

3) Which configuration file holds the permission to use the internet?


a. Layout file b. Property file c. Java source file d. Manifest file

4. What does the src folder contain?


a. Image, icon files b. XML resource files
c. application manifest file d. Java source code files

5. Which file specifies the minimum required Android SDK version your application
supports?
a. main.xml b. R.java c. strings.xml d. AndroidManifest.xml

6. Which is not included in the Android application framework?


a. WindowManager b. NotificationManager c. DialerManager d. PackageManager

7. What Eclipse plugin is required to develop Android application?


a. J2EE b. Android Software Development Kit
c. Android Development Tools d. Web Development Tools

8. Which method is used to close an activity?


a. Destroy ( ) b. Finish ( ) c. Stop ( ) d. Close ( )

9. What is used by android for relational data storage?


A) Tomcat B) SQL C) SQLiteDatabase D) None of the above.

10. What is true about an Android Virtual Device (AVD)?


A) An AVD is an emulator instance that enables you to model an actual device.
B) You can create more than one AVDs in order to test your applications with several
different configurations.
C) You cannot create more than one AVDs.
D) Option A and B are correct.

11. In which file, permissions are set in Android?


A) Src B) AndroidManifest.xml C) Bin D) None of the above.

12. Which virtual machine is used by Android to run application?


A) JVM B) Dalvik VM C) AVD D) None of the above.
Prepared by,
Rahul K Ghotekar
13. What is the full form of DDMS?
A) Dalvik Debug Monitoring Service B) Dalvik Design Monitoring Service
C) Direct Debug Monitoring Service D) None of the above.

14. Choose the correct option regarding activity in android.


A) Activity is a class.
B) When you create an android application your activity (class) is, by default inherited
from Activity class.
C) Option A and B are correct. D) None of the above.

15. In Android, visual components are called.


A) Views B) Components C) DLL D) None of the above.

16. What is the full form of AVD in Android?


A) Android Virtual Device B) Android Virtual Display
C) Actual Virtual Display D) All of the above.

17. Android provides the following functionality.


A) Security B) Networking C) Portability D) All of the above.

18. Which one is not a nickname of android OS?


A) Honeycomb B) CupCake C) Muffin D) None of the above.

19. Android is licensed under which open source licensing license?


A. Gnus GPL B. Apache/MIT C. OSS D. Sourceforge

20. Android is not actually owned by Google. Who owns the Android platform?
A. Oracle Technology B. Dalvik C. Open Handset Alliance D. Google

21. What was the first phone released that ran the Android OS?
A. Google gPhone B. T-Mobile G1 C. Motorola Droid D. HTC Hero

22. What is a funny fact about the start of Android?


A. It was orginaly going to be called UFO
B. The first version of Android was released without an actual phone on the market
C. Androids main purpose was to unlock your car door when you left the keys inside of it.
D. Was going to be a closed source application to make more money for its company.

23. What year was the Open Handset Alliance announced?


A. 2005 B. 2006 C. 2007 D. 2008

24. When did Google purchase Android?


A. 2007 B. 2005 C. 2008 D. 2010

Prepared by
(Rahul K Ghotekar)
25. Android releases since 1.5 has been given nicknames derived how?
A. Adjective and strange animal B. Food
C. Something that starts w/ A -> something that starts w/ B D. American states

26. Which piece of code used in Android is not open source?


A. Keypad driver B. WiFi Driver C. Audio driver D. Power management

27. Which among these are NOT a part of Androids native libraries?
A. Webkit B. Dalvik C. OpenGL D. SQLite

28. Android is based on Linux for the following reason.


A. Security B. Portability C. Networking D. All of these

29. What operating system is used as the base of the Android stack?
A. Linux B. Windows C. Java D. XML

30. What does the .apk extension stand for?


A. Application Package B. Application Program Kit
C. Android Proprietary Kit D. Android Package

31. What is the name of program that converts Java byte code into Dalvik byte code?
A. Android Interpretive Compiler (AIC) B. Dalvik Converter
C. Dex compiler D. Mobile Interpretive Compiler (MIC)

32. What is contained within the manifest xml file?


A. The permissions the app requires B. The list of strings used in the app
C. The source code D. All other choices

33. The ___________ file specifies the layout of your screen.


A. Layout file B. Manifest file C. Strings XML D. R file

34. The XML file that contains all the text that your application uses.
A. stack.xml B. text.xml C. strings.xml D. string.java

35. What runs in the background and doesnt have any UI components?
A. Intents B. Content Providers C. Services D. Applications

36. When an activity doesnt exist in memory it is in.


A. Starting state B. Running state C. Loading state D. Inexistent state.

********************************** BEST OF LUCK **************************

Prepared by
(Rahul K Ghotekar)
1. What is an activity in Android?

A. Activity performs the actions on the screen


B. Manage the Application content
C. Screen UI
D. None of the above

Answer : A

2. How many sizes are supported by Android?

A. Android supported all sizes


B. Android does not support all sizes
C. Android supports small, normal, large and extra-large sizes
D. Size is undefined in android
Answer : C

3. What is APK in android?

A. Android Application package


B. Android pack
C. Android packaging kit
D. None of the above.
Answer : A

4. What is Android?

A. Android is a stack of software's for mobility


B. Google mobile device name
C. Virtual machine
D. None of the above
Answer : A

5. What is a thread in android?

A. Same as services
B. Background activity
C. Broadcast Receiver
D. Independent dis-patchable unit is called a thread
Answer : D

6. Explain android activity life cycle?

A. onCreate() >onStart() >onActivityStarted() >onResume() >onPause() >onStop()


>onActivityDistroy() >onDestroy()
B. OnCreate() >onStart() >onResume() >onPause() >onStop() >onRestart() >onDestroy()
C. OnCreate() >onStart() >onPause() >onResume() >onStop() >onDestroy()
D. >onResume()
Answer : B

7.What are the functionalities of Binder services in android?

A. Binder is responsible to manage the thread while using aidl in android


B. Binder is responsible for marshalling and un-marshalling of the data
C. A&B
D. Binder is a kind of interface
E. None of the above
Answer : C

8. What is an anonymous class in android?

A. Interface class
B. A class that does not have a name but have functionalities in it
C. Java class
D. Manifest file
Answer : B

9. Web browser available in android is based on

A. Chrome
B. Firefox
C. Open-source Webkit
D. Opera

Answer :C

10.Android supports which features.

A. Multitasking
B. Bluetooth
C. Video calling
D. All of the above

Answer :D

11. Android is based on which language.


A. C
B. C++
C. VC++
D. Java

Answer :D

12. Which company developed android?

A. Apple
B. Google
C. Android Inc.
D. Nokia

Answer :C.

13. Which company bought android?


A. Apple
B. No company
C. Nokia
D. Google

Answer :D

14. Which is the latest mobile version of android?


A.3.0 (Honeycomb)
B. Lollipop
C. 7.1 Nougat
D. Marshmallow

Answer :C

15. What is android?


A. Desktop Operating System
B. Programming Language
C. Mobile Operating System
D. Database

Answer :C

16. Which version of Android is code-named Jelly bin?

A. 4.1
B. 4.2
C. 4.3
D. All of these

Answer: D

17. Android is a----------based operating system.

A. Windows
B. Linux
C. Macintosh
D. Unix

Answer: B

18. First android tablet was

A. LG Optimus Pad
B. HTC Flyer
C. Samsung Galaxy tab
D. Motorola zoom

Answer: C

19. The first completely compatible version of Android

A. Android 4.0 Icecream sandwich


B. Android 3.0Gingerbed
C. Android 5.0 Lollypop
D. Android 2.3Honeycomb

Answer: C

20. Which one of these is the co-founder of Andoid

A. Andy Rubin
B. Steve Perlman
C. Hugo Barra
D. Eric Schmidt

Answer: A

21. What does AOSP stand for

A. Android Open source protocol


B. Android Open stack programming
C. Android Open system project
D. Android open source Project

Answer: D
21. Android was founded in

A. 2005
B. 2008
C. 2007
D. 2003

Answer: D

22. The first commercially available smartphone running the Android was by which company?

A. HTC
B. LG
C. Samsung
D. Motorola

Answer: A

23. Android is the most successful mobile operating system with the highest market share

A. True
B. False

Answer: A

24. Difference between android api and google api?


A. The google API includes Google Maps and other Google-specific libraries. The Android one only
includes core android libraries.
B. The google API one only includes core android libraries. The Android includes Google Maps and
other Google-specific libraries.
C.None of the above.
Answer : A

25. Which is not a version of Android?

A. Cupcake

B. Gingerbread

C. Lollypop

D. Muffin

Answer: D

26. Android does not make any assumption about devices screen size, resolution or chipset

A. True

B. False
Answer: A

27. Android is licensed under which open source licecsinglicence?

A. GNUs GPs

B. Apache/MIT

C. OSS

D. Sourceforge

Answer: B

28. Who owns the Android platform?

A. Google

B. Dalvic

C. Open Handset Alliance

D. Oracle technologies

Answer: C

29. What was the first phone release with the Android Operatingb system?

A. Google gphone

B. Motorola droid

C. T-Mobile G1

D. HTC Hero

Answer: C

30. Which year the Open Handset Alliance announced?

A. 2003

B. 2005

C. 2008

D. 2007

Answer: D

31. Google licensed some proprietary app?


A. True

B. False

Answer: A

32. Android releases since 1.5 have been given names derived after?

A. Sweets/food

B. American states

C. Strange animal

D. None of these

Answer: A

33. Which among these is not a part of Android native libraries ?

A. Webkit

B. Dalvik

C. sqlite

D. OpenGL

Answer: B

34. Android is based on Dalvik for the following reason?

A. Portability

B. Security

C. Networking

D. All of these

Answer: D

35. Which operating system is used as a base for Android stack?

A. Linux
B. Windows
C. Java
C. XML
Answer: A
36. If you want share the data accross the all applications ,you should go for?
A. Shared Preferences
B. Internal Storage
C. SQLite Databases
D. content provider
Answer: D

37. Who hold the copyrights of Android SDK ?

A. OHA
B. HTC
C. Google
D. Microsoft
Answer: C

38. Under Android SDK License agreement , Android grants you permission to use Google brands, logos,
or trade names

A. True
B. False

Answer: B

39. Google may change the Android SDK anytime, without notice, without regard to backward
compatibility.

A. True
B. False
Answer: A

40. Who holds all rights of any Android software developed by a developer with the SDK

A. Developer
B. Google
C. OHA
D. Andy Rubin
Answer: A

41. Any harm that comes from developing with the Android SDK is Googles fault.

A. True
B. False
Answer: B

42. Android SDK documentation is divided into how many sections?

A.7
B. 5
C.8
D. 4
Answer: A

43. Among the following mentioned tabs, which is not the tab related to Android Documentation?

A. SDK tab
B. Home tab
C. Audio tab
D. Videos tab
Answer: C

44. Locally Android documentation is provided in format

A. WML
B. HTML
C.XML
D. None of the above
Answer: B

45. Which part of android is open source?

A. Low level Linux kernels


B. Application framework
C.Native libraries
D All of these,the entire stacl is a open source platform
Answer: D

46. What does .apk extension stand for

A. Android Application package


B. Android program kit
C. Android package kit
D. Android proprietary kit
Answer: A

47.If you want share the data accross the all applications ,you should go for?
A. Shared Preferences
B. Internal Storage
C. SQLite Databases
D. content provider
Answer:D

48. To create an emulator you need a AVD, What does AVD stand for

A. Android virtual display


B. Android Virtual device
C. Active virtual display
D. Application Virtual device
Answer: B

49. While developing android applications, developer can test apps on

A. Physical Android device


B. Emulator included in Android SDK
C. Third party emulators
D. All of these
Answer: D

50. There can be only one activity running at any given time

A. True
B. False
Answer: A

51. What is an activity?

A. A message sent among basic building blocks


B. A single screen the user sees on the device at a time
C. Context referring to the application environment
D. A component that runs in the background without ant interface
Answer: B

50. There can be only one activity running at any given time

A. True

B. False

Answer: A

51. What is an activity?

A. A message sent among basic building blocks

B. A single screen the user sees on the device at a time

C. Context referring to the application environment

D. A component that runs in the background without ant interface

Answer: B

52) During an Activity life-cycle, what is the first callback method invoked by the system?
a. onStop() b. onStart() c. onCreate() d. onResume()
Answer: C
53) Which configuration file holds the permission to use the internet?
A. Layout file B. Property file C. Java source file D. Manifest file
Answer: D

54) Which is not included in the Android application framework?


a. WindowManager b. NotificationManager c. DialerManager d. PackageManager

Answer: C
55). What Eclipse plugin is required to develop Android application?
a. J2EE b. Android Software Development Kit
c. Android Development Tools d. Web Development Tools
Answer: C

56) What is the full form of DDMS?


A) Dalvik Debug Monitoring Service B) Dalvik Design Monitoring Service
C) Direct Debug Monitoring Service D) None of the above.
Answer: A

57) What is contained within the manifest xml file?


A. The permissions the app requires B. The list of strings used in the app
C. The source code D. All other choices

58) Which is not a lifecycle callback related to the activity life cycle ?

A. Onstart() B)Onstop() C)Onrestore() D) onDestroy


Answer:C

59) To navigate transitions between stages of the activity lifecycle,how many callbacks are
provided by the Activity class
A. 5 B. 6 C. 8 D. 7
Answer:6
60. Which Activity callback in the the Activity lifecycle of Android makes the activity visible to
the user
A. onStart() B. onResume() C.onPause() D. onCreate()
Answer: A
61. . Which Activity callback in the the Activity lifecycle of Android the user starts interacting
with the application.
A. onResume() B.onRestore() C.onstart() D.onCreate()
Answer: A

62. After which activity callback the activity is no longer visible.


A. onResume() B.onPause() C.onStart() D.onStop()
Answer: D

63. Which is the example of proprietary Mobile platforms?


A. Palm OS/Garnet OS B. RIM BlackBerry OS C. Symbian OS D. All of the above
Answer: D
64. The operating system of Android is licensed under ____________________
A. ASL
B. Apache2
C. GNU GPLv2
D. JNU GPLv3
Answer: C

65. Each Android machine runs on its own virtual Machine


A. True B. False
Answer: A

66. Android applications can be developed on


A. windows
B. Macintosh
C. Linux
D. All of the above
Answer: D

67. For the development of Android applications the software required is__________
A. JDK B. Java IDE C. Android SDK D. All of the above
Answer: D

68. The Android development tools are integrated into the Eclipse IDE
A. False B. True
Answer: B

69. Android devices have debugging enabled by default.


A. True B. False
Answer: B

70. By default your device is enabled to install Android applications other than available from
Android market.
A. True B. False
Answer: B

71. The development settings that should be enabled on the Android device to develop
applications
A. USB Debugging B. Stay Awake C. Allow Mock Location D. All of the above
Answer: D

72. With the up gradation of Android SDK which notes are released by Google?
A. An overview of changes
B. An API Diff Report
C. Release Notes
D. All of the above
Answer: D

73. The Android SDK has how many major components?


A. 5 B. 6 C. 7 D. 4
Answer: A

74. Under the Android License Agreement user can make derivative works from SDK .
A. True B. False
Answer: B

75. Once the contract is done between the developer and Google, you can distribute the SDK on
any device
A. True B. False
Answer: B

76. Which section in Android SDK documentation provides information about best practices for
Android application design and development?
A. Home tab B. Dev Guide tab C. SDK tab D. Resources tab
Answer: B.

77. The access to Android technical articles is provided under Which section in Android SDK
documentation
A. SDK tab B. Reference tab C. Resources tab D. None of the above
Answer: C

78.The Android SDK tool is integrated into Eclipse


A. True B. False
Answer: A

79.Emulator is a device tied to specific configuration .


A. True B. False
Answer: B

80. The Dalvik Debug Monitor Server is a


A. Command line tool
B. Client-server tool
C. Both A & B
D. None of the above
Answer: A

81. The client Server tool used to enable developers to debug Android code on the emulator is
A. Dalvik Debug Monitor Server
B. Android Debug Bridge
C. Android Emulator
D. Android SDK and AVD Manager
Answer: B

Potrebbero piacerti anche