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
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.

25
An activity is a subclass of ________ class.
Activity Syntax: public class ActName extends Activity{}
26
It is a component that runs in the background to perform long-running operations.
Services Syntax: public class ServiceName extends Service{}
27
A service is a subclass of _________ class.
Service
28
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.
False. (Applications and the system CAN initiate broadcast messages)
29
The ______________ will intercept communication and initiate appropriate action.
Broadcast Receiver
30
A broadcast receiver is a subclass of ____________ class and each message is broadcasted as an ______ object.
BroadcastReceiver; Intent Syntax: public class ReceiverName extends BroadcastReceiver{public void onReceive(context,intent){}}
31
This allows apps to supply data to others on request.
Content Providers
32
True or False. Requests are handled by ContentResolver class methods. The data may be stored in the file system, database or somewhere else.
True
33
A content provider is a subclass of ________ class and must implement a standard set of APIs for transactions
ContentProvider Syntax: ContProvName extends ContentProvider{public void onCreate(){}}
34
This refers to the additional files and static content under res/.
Android Resources
35
Android resources are accessed using the command, ________.
R.dirName.resourceID
36
This resource directory contains XML files that define Property animations.
animator/ R.animator
37
This resource directory contains XML files that define Tween animations.
anim/ R.anim
38
True or False. Property animations can also be saved in anim/ but animator/ is preferred to distinguish between the two.
True.
39
This resource directory contains XML files that define a state list of colors.
color/ R.color
40
This resource directory contains Bitmap (PNG, JPG, or GIF) or XML files compiled into different subtypes.
drawable/ R.drawable
41
This resource directory contains XML files that define a user interface layout.
layout/ R.layout
42
This resource directory contains XML files that define application menus (Options, Context, or Sub Menu)
menu/ R.menu
43
This resource directory contains arbitrary files to save in their raw form.
raw/
44
True or False. Regarding the raw/ directory, to open with a raw InputStream call, call Resource.openResource() with the resource ID, R.raw.filename
False. (Resource.openRawResources must be called)
45
To access original filenames and file hierarchy, save resources in ______.
assets/
46
True or False. Files in assets/ have a resource ID so you can only read them using AssetManager.
False. (files in assets/ DON'T have a resource ID)
47
This resource directory contains XML files that contain simple values and can describe multiple resources.
values/
48
This resource directory contains Arbitrary XML files read at runtime by calling Resources.getXML().
xml/
49
Various XML configuration files must be saved here in this resource directory.
xml/
50
This resource directory contains Font files (TTF, OTF, or TTC), or XML files with a element.
font/
51
True or False. When your application is compiled, a R class gets generated with resource IDs for all resources in res/.
True
52
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).
True
53
What is the syntax for accessing resources in XML file?
"@element/resourceID" @string/hello