MIDTERM Flashcards
What is Android’s kernel derived from?
Linux Kernel
What language are the native libraries written in?
C / C++
Which versions of Android use Android Runtime (ART)?
5.0 and up
What is the predecessor of Android Runtime?
Dalvik
What is .dex?
Bytecode used by ART and Dalvik
What is the “Mother” of all files in Android?
androidManifest.xml
What does Res mean?
Resources folder
What is the Logcat window?
Displays messages in real time as you run your app
What kind of message is Log.e?
Error
What kind of message is Log.w?
Warning
What kind of message is Log.i?
Information
What kind of message is Log.d?
Debug
What kind of message is Log.v?
Verbose
What does Android Profiler do?
Shows the status of the device. ex: Network, Memory, CPU
What is the Android Debug Bridge?
A command-line tool to communicate with device
What is an Activity?
A window that contains the UI of your app
How many activities can an app have?
0+
What is a fragment?
Miniature activities that can be grouped to make one activity
What is an Intent?
The “glue” that enables different activities from different applications to work together
Where does the activity manager store records of open windows?
Application stack
What is an application?
One or more activities plus a Linux process to contain them
Application != _______
Process
What function is used to place the UI in an Activity?
setContentView(View)
Where do you initialize an activity?
onCreate(Bundle)
What are the 4 states of an Activity?
- Active/Running
- Visible
- Stopped/Hidden
- Destroyed
What is the order of the 6 callback methods based on the Activity lifecycle?
- onCreate()
- onStart()
- onResume()
- onPause()
- onStop()
- onDestroy()
On which callback method should state be saved?
onPause()
What is a service?
A task that runs in the background without the users direct interaction
What are the 2 ways to design an android app?
- Procedural
- Declarative
What is a view?
Every interactive visual control object that a user sees on the screen
What is the default layout?
ConstraintLayout
What are the 5 layouts?
- Constraint
- Frame
- Linear
- Relative
- Table
Which layout arranges it’s children so they all start at the top left of the screen?
FrameLayout
Which layout arranges it’s children in a single row or column?
LinearLayout
What are the 3 ways to set up listeners?
- Programmatically using onCreate()
- using android:onClick in the layout.xml
- In the activity using onClickListener()
What function do you use to to find views programmatically?
findViewById()
What are the 5 types of Data Persistance?
- Bundles
- SharedPreferences
- FileStorage
- Database
- External Storage
What are bundles?
Sharing data between activities
What is it called to share data between application executions?
SharedPreferences
What kind of data do SharedPreferences work on?
Primitive
What 2 things are adapters responsible for?
1) bridge between AdapterView and underlying data
2) Makes the view for each item in the dataset
RecyclerView requires an Adapter and what else?
ViewHolder
What kind of intent is used for emails, sms, calls, etc?
Implicit intent
What is needed for an app to use resources outside it’s sandbox?
Permissions
Where do you declare needed permissions?
App Manifest
What 2 locations house notifications?
1) Notification area
2) Notification drawer
What are notification channels?
Provide a unified system to help users manage notifications
What steps are involved in issuing a notification?
- Get instance of Notification manager
- User notify() to issue notification
- Call Build()
What 3 classes are used for advertisements?
- AdView
- AdSize
- AdRequest