Deck 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data

Full screen (f)
exit full mode
Question
We place transition XML files in the ____________ directory of the res directory.
Use Space or
up arrow
down arrow
to flip the card.
Question
A Table Layout arranges its components in ____________ and ____________.
Question
Using a RelativeLayout, to specify that a View matches the left edge of another View, we use which of the following attributes?

A) android:layout_alignLeft
B) android:layout_leftOf
C) android:layout_rightOf
D) android:layout_align
Question
Using a RelativeLayout, to specify that a View goes to the right of another View, we use which of the following attributes?

A) android:layout_toRight
B) android:layout_rightOf
C) android:layout_toRightOf
D) android:layout_right
Question
If we have more than one activity, it is possible to navigate back and forth between the corresponding views.
Question
Clicking on a button can make the app move to another activity.
Question
The onResume method of the Activity class is called right after the ____________ method.
Question
The ____________ method of the Activity class is called when an activity becomes invisible to the user.
Question
The ____________ interface includes the functionality to write to and read from the user preferences.
Question
What XML element do we use when defining a transition that involves a fade-in effect?

A) fade
B) transparent
C) alpha
D) change
Question
In order to set up a transition when going from one activity to another, we call the ____________ method from the Activity class.
Question
Following is the API of the getint method of SharedPreferences.Editor:
Int getInt( String a, int b)
What does b represent?

A) A key for which getInt returns the associated value
B) A value for which getInt returns the associated key
C) A default value that may (or may not) be returned by getInt
D) A default key value
Question
What XML element represents a row in a TableLayout?

A) Row
B) TableRow
C) Table
D) Rows
Question
Using a RelativeLayout, which attribute do we use to specify that a View goes below another View?

A) android:below
B) android:belowView
C) android:layout_belowView
D) android:layout_below
Question
Using a RelativeLayout, which attribute do we use to specify that a View's bottom matches the bottom of its parent View?

A) android:layout_align
B) android:layout_alignBottom
C) android:layout_alignParentBottom
D) android:layout_alignY
Question
What is this in the following code?
Intent myIntent = new Intent( this, DataActivity.class );

A) A DataActivity reference
B) A reference to the current Activity
C) An Intent
D) A class
Question
What is DataActivity in the following code?
Intent myIntent = new Intent( this, DataActivity.class );

A) A subclass of Intent
B) A reference to the current Activity
C) An Intent
D) An Activity class
Question
When using a scale element for a scaling transition, what attribute do we use to define the x coordinate of a fixed point when scaling takes place?

A) android:pivot
B) android:X
C) android:scaleX
D) android:pivotX
Question
We can use a View element to encode a line.
Question
It is possible to pass data from one activity to another.
Question
The __________________ method of the Activity class is called when an activity is about to restart.
Question
The __________________ method of the Activity class is called when another activity starts and the current activity goes in the background.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/22
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data
1
We place transition XML files in the ____________ directory of the res directory.
anim
2
A Table Layout arranges its components in ____________ and ____________.
rows and columns
3
Using a RelativeLayout, to specify that a View matches the left edge of another View, we use which of the following attributes?

A) android:layout_alignLeft
B) android:layout_leftOf
C) android:layout_rightOf
D) android:layout_align
android:layout_alignLeft
4
Using a RelativeLayout, to specify that a View goes to the right of another View, we use which of the following attributes?

A) android:layout_toRight
B) android:layout_rightOf
C) android:layout_toRightOf
D) android:layout_right
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
5
If we have more than one activity, it is possible to navigate back and forth between the corresponding views.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
6
Clicking on a button can make the app move to another activity.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
7
The onResume method of the Activity class is called right after the ____________ method.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
8
The ____________ method of the Activity class is called when an activity becomes invisible to the user.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
9
The ____________ interface includes the functionality to write to and read from the user preferences.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
10
What XML element do we use when defining a transition that involves a fade-in effect?

A) fade
B) transparent
C) alpha
D) change
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
11
In order to set up a transition when going from one activity to another, we call the ____________ method from the Activity class.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
12
Following is the API of the getint method of SharedPreferences.Editor:
Int getInt( String a, int b)
What does b represent?

A) A key for which getInt returns the associated value
B) A value for which getInt returns the associated key
C) A default value that may (or may not) be returned by getInt
D) A default key value
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
13
What XML element represents a row in a TableLayout?

A) Row
B) TableRow
C) Table
D) Rows
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
14
Using a RelativeLayout, which attribute do we use to specify that a View goes below another View?

A) android:below
B) android:belowView
C) android:layout_belowView
D) android:layout_below
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
15
Using a RelativeLayout, which attribute do we use to specify that a View's bottom matches the bottom of its parent View?

A) android:layout_align
B) android:layout_alignBottom
C) android:layout_alignParentBottom
D) android:layout_alignY
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
16
What is this in the following code?
Intent myIntent = new Intent( this, DataActivity.class );

A) A DataActivity reference
B) A reference to the current Activity
C) An Intent
D) A class
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
17
What is DataActivity in the following code?
Intent myIntent = new Intent( this, DataActivity.class );

A) A subclass of Intent
B) A reference to the current Activity
C) An Intent
D) An Activity class
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
18
When using a scale element for a scaling transition, what attribute do we use to define the x coordinate of a fixed point when scaling takes place?

A) android:pivot
B) android:X
C) android:scaleX
D) android:pivotX
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
19
We can use a View element to encode a line.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
20
It is possible to pass data from one activity to another.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
21
The __________________ method of the Activity class is called when an activity is about to restart.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
22
The __________________ method of the Activity class is called when another activity starts and the current activity goes in the background.
Unlock Deck
Unlock for access to all 22 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 22 flashcards in this deck.