Mobile System Midterms

0.0(0)
studied byStudied by 1 person
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/42

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

43 Terms

1
New cards

Activity

This represent a single screen in the app where the user can perform a single focused task such as sending an e-mail. It is usually presented to the user as a full-screen window.

2
New cards

To implement an activity

  1. Create an Activity Java class.

  2. Implement a basic UI for the Activity in an associated XML layout file.

  3. Declare the new Activity in AndroidManifest.xml.

3
New cards

Activity Life Cycle

This is the set of states an activity can be in during

its entire lifetime.

4
New cards

onCreate()

It is invoked when the app is launched for the

first time. It happens only once for the entire

life of the activity.

5
New cards

onStart()

It is invoked before the activity becomes

visible to the user.

6
New cards

onResume()

It is invoked before the activity starts interacting with the user.

7
New cards

onPause()

It is invoked when the system is about to start resuming another activity.

8
New cards

onStop()

It is invoked when the activity is no longer visible to the user.

9
New cards

onDestroy()

t is invoked when:

  • the activity is finishing (due to the completely dismissing the activity or due to finish() being called on the activity)

    • the system is temporarily destroying the activity due to a configuration change (such as device rotation or multi-window mode)

10
New cards

onRestart()

It is invoked if the activity comes back after being stopped. It is always followed by onStart().

11
New cards

Back Stack

Each time a new activity starts, the previous activity is stopped, but the system preserves the activity in a stack called “____“

12
New cards

Intent

It is an asynchronous message that is used in an activity to request an action from another activity, or from some other app component.

13
New cards

Parts of an intent

  • Target Activity

  • Intent data/object

  • Intent extras

  • Intent flags

14
New cards

Types of intent

  • Explicit Intent

  • Implicit Intent

15
New cards

Target Activity

The activity that will receive the intent.

16
New cards

Intent data/object

This contains a reference to the data you want the receiving activity to operate on.

17
New cards

Intent Extras

This carry information the receiving activity requires to accomplish the requested action (optional).

18
New cards

Intent flags

This may instruct the Android system how to launch an Activity or how to treat it after it’s launched (optional).

19
New cards

Explicit Intent

The target of the intent (the class name of the activity) is already identified.

20
New cards

Implicit Intent

The target of the intent is not yet identified but there is a general action to perform. It also includes an action, category, and data type.

21
New cards

parentActivityName

This attribute indicates that the main activity is the parent of the second activity.

22
New cards

Layout

This define the structure for an app’s user interface.

23
New cards

View

This draws something the user can see and interact with.

24
New cards

ViewGroup

An invisible container that defines the layout structure for View and other ViewGroup objects.

25
New cards

Declare UI elements in XML

The presentation of the app can be separated from the code that controls its behavior.

26
New cards

Instantiate layout elements at runtime

The View and Viewgroup objects can be created and their properties can be manipulated programmatically.

27
New cards

Context

This is an interface to global information about an application environment.

28
New cards

wrap_content

This sets the size of the view to dimensions required by its content.

29
New cards

match_parent

This sets the view to be as big as its parent view group will allow.

30
New cards

Constraint Layout

This creates large and complex layouts with a flat view hierarchy (no nested view groups).

31
New cards

Linear Layout

This organizes its child view elements into a single horizontal or vertical row.

32
New cards

Relative Layout

This is used to specify the location of child objects relative to each other (child A to the left of child B) or to the parent (aligned to the top of the parent).

33
New cards

Web View

This is used for displaying web pages.

34
New cards

Frame Layout

This is designed to block out an area on the screen to display a single item.

35
New cards

Table Layout

This arranges its child objects into rows and columns.

36
New cards

Grid Layout

This arranges its child objects in a rectangular grid that can be scrolled.

37
New cards

Notification

This is a message that Android displays outside the app’s UI to provide the user with reminders, communication from other people, or other timely information from the app.

38
New cards

Notification Drawer

This allows to view more details and take actions with the notification.

39
New cards

App bar/action bar

This provides a visual structure and interactive elements that are familiar to users.

40
New cards

Toast

This provides simple feedback about an operation in a small popup.

41
New cards

Snackbar

This provides a quick pop-up message to the user.

42
New cards

Dialog

It is a small window that prompts the user to make a decision or enter additional information. It is not designed to fill the screen.

43
New cards

Menu

It is used to present user actions and other options in the app’s activities.