MIDTERM Flashcards

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 != _______

A

Process

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
Q

What are the 4 states of an Activity?

A
  1. Active/Running
  2. Visible
  3. Stopped/Hidden
  4. Destroyed
26
Q

What is the order of the 6 callback methods based on the Activity lifecycle?

A
  1. onCreate()
  2. onStart()
  3. onResume()
  4. onPause()
  5. onStop()
  6. onDestroy()
27
Q

On which callback method should state be saved?

A

onPause()

28
Q

What is a service?

A

A task that runs in the background without the users direct interaction

29
Q

What are the 2 ways to design an android app?

A
  1. Procedural
  2. Declarative
30
Q

What is a view?

A

Every interactive visual control object that a user sees on the screen

31
Q

What is the default layout?

A

ConstraintLayout

32
Q

What are the 5 layouts?

A
  1. Constraint
  2. Frame
  3. Linear
  4. Relative
  5. Table
33
Q

Which layout arranges it’s children so they all start at the top left of the screen?

A

FrameLayout

34
Q

Which layout arranges it’s children in a single row or column?

A

LinearLayout

35
Q

What are the 3 ways to set up listeners?

A
  1. Programmatically using onCreate()
  2. using android:onClick in the layout.xml
  3. In the activity using onClickListener()
36
Q

What function do you use to to find views programmatically?

A

findViewById()

37
Q

What are the 5 types of Data Persistance?

A
  1. Bundles
  2. SharedPreferences
  3. FileStorage
  4. Database
  5. External Storage
38
Q

What are bundles?

A

Sharing data between activities

39
Q

What is it called to share data between application executions?

A

SharedPreferences

40
Q

What kind of data do SharedPreferences work on?

A

Primitive

41
Q

What 2 things are adapters responsible for?

A

1) bridge between AdapterView and underlying data
2) Makes the view for each item in the dataset

42
Q

RecyclerView requires an Adapter and what else?

A

ViewHolder

43
Q

What kind of intent is used for emails, sms, calls, etc?

A

Implicit intent

44
Q

What is needed for an app to use resources outside it’s sandbox?

A

Permissions

45
Q

Where do you declare needed permissions?

A

App Manifest

46
Q

What 2 locations house notifications?

A

1) Notification area
2) Notification drawer

47
Q

What are notification channels?

A

Provide a unified system to help users manage notifications

48
Q

What steps are involved in issuing a notification?

A
  1. Get instance of Notification manager
  2. User notify() to issue notification
  3. Call Build()
49
Q

What 3 classes are used for advertisements?

A
  1. AdView
  2. AdSize
  3. AdRequest