Module 1 and 3 Flashcards

1
Q

The mobile operating system is based on _______.

A

Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What was the company that originally developed Android?

A

Android.inc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When was Android purchased by Google?

A

2005

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the different Android Features?

A
  • Database
  • Media Files
  • WiFi
  • Messaging
  • Applications
  • Touch Screen
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

It is a software stack of components for a mobile device.

A

Android Architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The _________ contains a Linux Kernel, collection of C/C++ libraries exposed through an application framework services, runtime and application.

A

Android Software Stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different parts of the Android Architecture?

A

In order:
1. Applications
2. Android Framework
3. Android Runtime
4. Platform Libraries
5. Linux Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

It is the main component to provide OS functions to mobile.

A

Linux Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or False.
Dalvik Virtual Machine (DVM) is for emulating mobile applications.

A

False.
(DVM is for RUNNING mobile applications.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

These are the essential building blocks of an Android application.

A

Application Components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

True or False.
Application components are loosely coupled by the application manifest file, MainActivity.java.

A

False.
(the main application file, AndroidManifest.xml)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

This file describes each component and how they interact.

A

AndroidManifest.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

These dictate UI and user interaction to the phone screen.

A

Activities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

These handle background processing associated with an application.

A

Services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

These handle communication between Android OS and applications.

A

Broadcast Receivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

These handle data and database management issues.

A

Content Providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

These are portions of user interface in an activity.

A

Fragments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

These are UI elements drawn on-screen.

A

Views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

These are view hierarchies that control format and appearance of views.

A

Layouts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

These are messages wiring components together.

A

Intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

These refer to external elements.

A

Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q
A
23
Q

This represents a single screen with a user interface and performs actions on the screen.

A

Activities

24
Q

True or False.
If an application has more than one activity, one should be marked as the activity that is presented when the application is launched.

A

True

25
Q

An activity is a subclass of ________ class.

A

Activity

Syntax:
public class ActName extends Activity{}

26
Q

It is a component that runs in the background to perform long-running operations.

A

Services

Syntax:
public class ServiceName extends Service{}

27
Q

A service is a subclass of _________ class.

A

Service

28
Q

True or False.
Applications or the system cannot initiate broadcasts messages to let other applications know that some data has been downloaded and is available to
use.

A

False.
(Applications and the system CAN initiate broadcast messages)

29
Q

The ______________ will intercept communication and initiate appropriate action.

A

Broadcast Receiver

30
Q

A broadcast receiver is a subclass of ____________ class and each message is broadcasted as an ______ object.

A

BroadcastReceiver; Intent

Syntax:
public class ReceiverName extends BroadcastReceiver{public void onReceive(context,intent){}}

31
Q

This allows apps to supply data to others on request.

A

Content Providers

32
Q

True or False.
Requests are handled by ContentResolver class methods. The data may be stored in the
file system, database or somewhere
else.

A

True

33
Q

A content provider is a subclass of ________ class and must implement a standard set of APIs for transactions

A

ContentProvider

Syntax:
ContProvName extends ContentProvider{public void onCreate(){}}

34
Q

This refers to the additional files and static content
under res/.

A

Android Resources

35
Q

Android resources are accessed using the command, ________.

A

R.dirName.resourceID

36
Q

This resource directory contains XML files that define Property animations.

A

animator/
R.animator

37
Q

This resource directory contains XML files that define Tween animations.

A

anim/
R.anim

38
Q

True or False.
Property animations can also be saved in anim/ but animator/ is preferred to distinguish between the two.

A

True.

39
Q

This resource directory contains XML files that define a state list of colors.

A

color/
R.color

40
Q

This resource directory contains Bitmap (PNG, JPG, or GIF) or XML files compiled into different subtypes.

A

drawable/
R.drawable

41
Q

This resource directory contains XML files that define a user interface layout.

A

layout/
R.layout

42
Q

This resource directory contains XML files that define application menus (Options, Context, or Sub Menu)

A

menu/
R.menu

43
Q

This resource directory contains arbitrary files to save in their raw form.

A

raw/

44
Q

True or False.
Regarding the raw/ directory, to open with a raw InputStream call, call Resource.openResource() with the resource ID, R.raw.filename

A

False.
(Resource.openRawResources must be called)

45
Q

To access original filenames and file hierarchy, save resources in ______.

A

assets/

46
Q

True or False.
Files in assets/ have a resource ID so you can only read them using AssetManager.

A

False.
(files in assets/ DON’T have a resource ID)

47
Q

This resource directory contains XML files that contain simple values and can describe multiple resources.

A

values/

48
Q

This resource directory contains Arbitrary XML files read at runtime by calling Resources.getXML().

A

xml/

49
Q

Various XML configuration files must be saved
here in this resource directory.

A

xml/

50
Q

This resource directory contains Font files (TTF, OTF, or TTC), or XML files with a <fontfamily> element.</fontfamily>

A

font/

51
Q

True or False.
When your application is compiled, a R class gets generated with resource IDs for all resources in res/.

A

True

52
Q

True or False.
You can use R class to access that resource with sub-directory and resource name (R.dir.ID) or directly
resource ID (R.id).

A

True

53
Q

What is the syntax for accessing resources in XML file?

A

“@element/resourceID”
@string/hello