Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Login

Register Now

Welcome to All Test Answers

Android How to Program Chapter 01 Solution Manual


 

Download  file with the answers

If you are not a member register here to download this file 


 

1 Introduction to Android
Objec t ives
In this chapter you’ll be
introduced to:
■ The history of Android and
the Android SDK.
■ The Android Market for apps.
■ A review of basic objecttechnology
concepts.
■ Key software for Android app
development, including the
Android SDK, the Java SDK
and Eclipse integrated
development environment
(IDE).
■ Important Android
documentation.
■ Test-driving an Android app
that enables you to draw on
the screen.
■ The Deitel online Android
Resource Centers.
2 Chapter 1 Introduction to Android
Self -Review Exercises
1.1 Fill in the blanks in each of the following statements:
a) In November 2007, the —a 34-company consortium initially and many
more now—was formed to develop Android, driving innovation in mobile technology
and improving the user experience while reducing costs.

b) Using Eclipse with the Plugin, you can create, run, test and debug Android
apps quickly and conveniently, and you can visually design your user interfaces.

c) Multitouch screens allow you to control your Android device with involving
one touch or multiple simultaneous touches.

d) You can create , which enable you to rapidly develop apps by combining
the complementary web services of several organizations, possibly with information
feeds of various types (such as RSS, Atom, XML, JSON and others).

e) The Andriod contains APIs for audio focus, auto-scanning files to the media
database (e.g., audio and video files), detecting sound loading completion, autopause
and auto-resume of audio playback, and more.

f) Android uses a collection of , which are named groups of related, predefined
classes.

g) The package gives access to Android content providers.

h) The , included in the Android SDK, allows you to run Android apps in a
simulated environment within Windows, Mac OS X or Linux.

i) Almost any noun can be reasonably represented as a software object in terms of
(e.g., name, color and size) and behaviors (e.g., calculating, moving and
communicating).

j) A program unit called a houses the methods that perform its tasks.

k) You send messages to an object. Each message is a that tells a method of
the object to perform its task.

1.2 State whether each of the following is true or false. If false, explain why.
a) One benefit of developing Android apps is that the operating system is proprietary to
Google.

b) The openness of the Android platform discourages innovation.

c) The Android Development Tools (ADT) Plugin for Eclipse—an extension to the
Eclipse IDE—allows you to create, run and debug Android apps, export them for distribution
(e.g., upload them to Android Market), and more.

d) You can reuse a class many times to build many objects. Reuse of existing classes when
building new classes and programs saves time and effort.

Exercises 3
e) Attributes are specified by the class’s methods.

f) Objects may communicate with one another, but they’re normally not allowed to know
how other objects are implemented—implementation details are hidden within the objects
themselves.

Exercises
1.3 Fill in the blanks in each of the following statements:
a) Android apps are developed with —the world’s most widely used programming
language, a logical choice because it’s powerful, free and open source.

b) GUI programming in Java is -driven, you’ll write apps that respond to various
user interactions such as screen touches and keystrokes.

c) Touching the screen and holding your finger in position is called a .

d) Touching and quickly flicking your finger across the screen in the direction you’d like
to move is called a .

e) Use the framework to add drag-and-drop capabilities in an app.

f)
ANS:
g) As a marketing strategy, many app developers offer basic versions of their apps for free
so users can determine whether they like them, then purchase more feature-rich versions.
This is called the “ ” strategy.

h) Before running an app in the emulator, you’ll need to create an , which defines
the characteristics of the device on which you want to test, including the hardware,
system image, screen size, data storage and more.

i) Performing a task in a program requires a which houses the program statements
that actually perform its tasks.

j) You must build an object of a class before a program can perform the tasks that the
class’s methods define. The process of doing this is called .

k) helps you build more reliable and effective systems, because existing classes
and components often have gone through extensive testing, debugging and performance
tuning.

l) Classes (i.e., wrap) attributes and methods into objects—an object’s attributes
and methods are intimately related.

m) A new class of objects can be created quickly and conveniently by —the
new class absorbs the characteristics of an existing one, possibly customizing them and
adding unique characteristics of its own.

4 Chapter 1 Introduction to Android
n) Unlike actual buttons on a device, buttons appear on the device’s touch
screen.

o) Colors are defined using the RGBA color scheme in which the red, green, blue and
components are specified by integers in the range 0–255.

1.4 State whether each of the following is true or false. If false, explain why.
a) The vast majority of Android development is done in C++.

b) Microsoft Visual Studio is the recommended integrated development environment for
Android development, though developers may also use a text editor and command-line
tools to create Android apps.

c) You can reproduce on the emulator most of the Android gestures and controls using
your computer’s keyboard and mouse.

d) Objects, or more precisely the classes objects come from, are essentially reusable software
components.

About

Leave a reply

Captcha Click on image to update the captcha .

error: Content is protected !!