MIDTERM Flashcards

(49 cards)

1
Q

What is Android’s kernel derived from?

A

Linux Kernel

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

What language are the native libraries written in?

A

C / C++

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

Which versions of Android use Android Runtime (ART)?

A

5.0 and up

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

What is the predecessor of Android Runtime?

A

Dalvik

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

What is .dex?

A

Bytecode used by ART and Dalvik

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

What is the “Mother” of all files in Android?

A

androidManifest.xml

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

What does Res mean?

A

Resources folder

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

What is the Logcat window?

A

Displays messages in real time as you run your app

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

What kind of message is Log.e?

A

Error

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

What kind of message is Log.w?

A

Warning

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

What kind of message is Log.i?

A

Information

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

What kind of message is Log.d?

A

Debug

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

What kind of message is Log.v?

A

Verbose

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

What does Android Profiler do?

A

Shows the status of the device. ex: Network, Memory, CPU

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

What is the Android Debug Bridge?

A

A command-line tool to communicate with device

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

What is an Activity?

A

A window that contains the UI of your app

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

How many activities can an app have?

A

0+

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

What is a fragment?

A

Miniature activities that can be grouped to make one activity

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

What is an Intent?

A

The “glue” that enables different activities from different applications to work together

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

Where does the activity manager store records of open windows?

A

Application stack

21
Q

What is an application?

A

One or more activities plus a Linux process to contain them

22
Q

Application != _______

23
Q

What function is used to place the UI in an Activity?

A

setContentView(View)

24
Q

Where do you initialize an activity?

A

onCreate(Bundle)

25
What are the 4 states of an Activity?
1. Active/Running 2. Visible 3. Stopped/Hidden 4. Destroyed
26
What is the order of the 6 callback methods based on the Activity lifecycle?
1. onCreate() 2. onStart() 3. onResume() 4. onPause() 5. onStop() 6. onDestroy()
27
On which callback method should state be saved?
onPause()
28
What is a service?
A task that runs in the background without the users direct interaction
29
What are the 2 ways to design an android app?
1. Procedural 2. Declarative
30
What is a view?
Every interactive visual control object that a user sees on the screen
31
What is the default layout?
ConstraintLayout
32
What are the 5 layouts?
1. Constraint 2. Frame 3. Linear 4. Relative 5. Table
33
Which layout arranges it's children so they all start at the top left of the screen?
FrameLayout
34
Which layout arranges it's children in a single row or column?
LinearLayout
35
What are the 3 ways to set up listeners?
1. Programmatically using onCreate() 2. using android:onClick in the layout.xml 3. In the activity using onClickListener()
36
What function do you use to to find views programmatically?
findViewById()
37
What are the 5 types of Data Persistance?
1. Bundles 2. SharedPreferences 3. FileStorage 4. Database 5. External Storage
38
What are bundles?
Sharing data between activities
39
What is it called to share data between application executions?
SharedPreferences
40
What kind of data do SharedPreferences work on?
Primitive
41
What 2 things are adapters responsible for?
1) bridge between AdapterView and underlying data 2) Makes the view for each item in the dataset
42
RecyclerView requires an Adapter and what else?
ViewHolder
43
What kind of intent is used for emails, sms, calls, etc?
Implicit intent
44
What is needed for an app to use resources outside it's sandbox?
Permissions
45
Where do you declare needed permissions?
App Manifest
46
What 2 locations house notifications?
1) Notification area 2) Notification drawer
47
What are notification channels?
Provide a unified system to help users manage notifications
48
What steps are involved in issuing a notification?
1. Get instance of Notification manager 2. User notify() to issue notification 3. Call Build()
49
What 3 classes are used for advertisements?
1. AdView 2. AdSize 3. AdRequest