FA 5 - CS0011 || CANVAS

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

5 Terms

1
New cards

An app is running in the foreground when a phone call arrives, displaying a small dialog-themed incoming call window over the top of the app. The user can still see the app's UI partially blurred or obscured in the background. Which lifecycle method is called on the main activity when this dialog appears?

onPause()

onDestroy()

onSaveInstanceState()

onStop()

onPause()*

2
New cards

The onResume() callback method is called whenever the activity becomes visible to the user.

True

False

True*

3
New cards

When the user exits an application, which of the following is correct?

  1. onStop() will be called first before onDestroy()

  2. onDestroy() will be called first before onStop()

  3. the application will only call onStop()

  4. the application will only call onDestroy()

i

iv only

ii only

ii and iii

i*

4
New cards

This is the last callback method in Android’s activity life cycle.

onRestart()

onStop()

onDestroy()

onResume()

onDestroy()*

5
New cards

When you open an application, onResume() method is called after.

onCreate()

onStop()

onPause()

onStart()

onStart()*