Mobile Software Engineering I - Unit 4 Flashcards

(26 cards)

1
Q

What are the main components that compose the logical structure of an Android application?

A
  • activities
  • services
  • intents
  • broadcast receivers
  • content providers
  • resources
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does an activitiy in an Android application represent?

A

A single screen in the UI.

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

What stages exist in Android activities?

A
  • start
  • pause
  • stop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What different types of services exist in Android?

A
  • started: runs in the foreground, and does not stop until a call to stopService() is made
  • bound: runs in the background and only as long as something is bound to them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of a Broadcast receiver in Android?

A

To handle communications between the Android system and different applications.

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

What is the concept of a Content Provider in Android?

A

It is used to access data while hiding the underlying storage medium/format.

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

What are Intents in Android?

A

Asynchronous messages for communication between Android components.

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

What does the AndroidManifest.xml file contain?

A
  • application name
  • first activity to be shown
  • main components that compose the app
  • permissions
  • minimum required API
  • libraries used by the app
  • special required hardware and software features
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the associated lifecycle methods in Android activities in the following cases:

  • called at the start of an activity
  • invokes the activity and makes it visible
  • core functions of an application are implemented in this method
  • called when the activity is temporarily left
  • releases all resources that were being used by an activity
  • called when an activity is finished or being destroyed
A
  • onCreate
  • onStart
  • onResume
  • onPause
  • onStop
  • onRestart
  • onDestroy
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What main parts does an XML layout file in Android consist of?

A
  • container
  • elements within the container
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are different layout managers in the XML layout of Android?

A
  • constraint layout
  • relative layout
  • linear layout
  • table layout
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the term “View” or “View Object” refer to in Android?

A

A UI interface element.

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

Which groups are views grouped into?

A

Views and ViewGroups

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

How is an Android view retrieved by ID in Java?

A

findViewById()

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

What main methods exist to interact with a Check Box in Android?

A
  • setChecked()
  • isChecked()
  • toggle()
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What can be used to group radio buttons together?

17
Q

What main methods exist to interact with a Radio Group in Android?

A
  • check()
  • clearCheck()
  • getCheckedRadioButtonId()
18
Q

What class is automatically generated to reference resources in Android?

19
Q

What are the following types of resources:

  • drawable
  • values
  • layout
  • XML
  • animations
  • menu
  • raw
A
  • drawable: graphics
  • values: strings, dimensions, styles, etc.
  • layout
  • XML: user-defined XML
  • animations
  • menu
  • raw: arbitrary files
20
Q

How is the R class used to access a resource?

A

Through the following template R.<resource_type>.<name>

21
Q

What are the main types of animations supported by Android? What are the main attributes associated with these animations?

A

Main Types:
* scale
* translate
* rotate
* alpha

Main Attributes:
* duration
* interpolator
* startOffset

22
Q

How is the localization of resources acheived in Android?

A

Through the use of different subfolders with the format res/<resource_type>-<lang_code>/...

23
Q

What steps are followed when determining alternative resources in Android?

A
  1. eliminate files that contradict with configurations of the device (lang is de but resource is en)
  2. use a qualifier precedence table to check each configuration individually (languge is more important than orientation)
  3. eliminate alternatives that do not include identifier from step 2
  4. repeat steps 2 and 3 until only one directory remains
24
Q

What is a widget in Android (not an app widget)

A

A view object.

25
What are the main steps to follow when using material design in an app?
1. have general knowledge of the material design specifications 2. choose a theme 3. create and update layouts that follow the guidelines 4. extend view objects by providing "elevation" 5. implement new widgets and features 6. always consider backwards compatibility
26
What are card widgets in Android?
A type of view group which provides a border and a shadow.