CS 213 Software Methodology - Android Essentials 2

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/37

flashcard set

Earn XP

Description and Tags

Flashcards covering key concepts from an Android development lecture, including components, activities, intents, UI elements, and essential files.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

38 Terms

1
New cards

What languages can Android apps be written in?

Kotlin, Java, or C++

2
New cards

What ID does the Android OS assign to each app?

A unique Linux user ID

3
New cards

What are the four different types of app components in Android?

Activities, Services, Broadcast receivers, Content providers

4
New cards

Why can apps with the same user ID can also arrange to run in the same Linux process and share the same VM?

To conserve system resources

5
New cards

Which crucial component of an Android app, is a fundamental part of the platform's application model?

The Activity class

6
New cards

Generally, what does one activity implement?

Implement one screen

7
New cards

What is manifest?

To use activities in your app, you must register information about them in the app’s __ and manage activity lifecycles appropriately.

8
New cards

What can good implementation of the lifecycle callbacks help ensure?

Ensuring that your app avoids crashing

9
New cards

What is a task in Android?

A collection of activities users interact with when performing a certain job

10
New cards

What is commonly perfromed in the onCreate() method?

Instantiation of class-scope variables

11
New cards

The previous activity is stopped, but the system preserves the activity in a stack (the "back stack")

When a new activity starts, what happen to the previous one?

12
New cards

What State does the activity enter after the onCreate() method finishes execution?

The activity enters the Started state, and the system calls the onStart() and onResume() methods in quick succession.

13
New cards

What happens when the activity enters the Resumed state?

The state in which the app interacts with the user

14
New cards

What is the first indication the system uses when calling the onPause() method?

That the user is leaving your activity

15
New cards

In the onStop() method, what should the app do?

The app should release or adjust resources that are not needed while the app is not visible to the user.

16
New cards

Does a service perform long-running operations in the background provide a user interface?

It does not provide a user interface

17
New cards

What are broadcast receivers used for?

Send or receive broadcast messages from the Android system and other Android apps

18
New cards

What is the asynchronous message that activates activities, services, and broadcast receivers?

An intent

19
New cards

What are the two types of Intents?

Explicit and Implicit

20
New cards

What do explicit intents specify?

specifies which application will satisfy the intent, by supplying either the target app's package name or a fully-qualified component class name

21
New cards

When does the system start a component based on the intent?

The intent matches an intent filter

22
New cards

What is the 'Action' when building an Intent object?

A string that specifies the generic action to perform

23
New cards

What is a Context in Android?

An Interface to global information about an application environment

24
New cards

What is the name of the app's manifest file?

AndroidManifest.xml

25
New cards

What is the primary task of the manifest file?

To inform the system about the app's components

26
New cards

What type of file are animations, menus, styles, colors, and the layout of activity user interfaces defined with?

XML files

27
New cards

What is a drawable resource?

A general concept for a graphic that can be drawn to the screen

28
New cards

What does a layout define?

The structure of a user interface in your app

29
New cards

What are the two ways to declare a layout?

In XML or at runtime

30
New cards

What does every element of the screen is consist of?

A View

31
New cards

ConstraintLayout is similar to what?

RelativeLayout

32
New cards

When is Toast message triggered?

Clicking Send on an email triggers a 'Sending message…' toast

33
New cards

What is Toast?

A small popup that provides simple feedback about an operation

34
New cards

Which window in Android Studio displays system messages and messages added to your app with the Log class?

The Logcat window

35
New cards

Which Log method would you use to log an error?

Log.e()

36
New cards

What is a Bundle in Android?

A collection of data, stored as key/value pairs

37
New cards

What does AVD stand for?

An Android Virtual Device

38
New cards

What is an APK?

An Android application package