Week 10/11 - Fragments, Updating A Widget Flashcards

0
Q

Which SDK version began support for fragments?

A

SDK version 3.0.

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

What is a Fragment?

A

A Fragment is a modular section of an activity that can be manipulated on its own. Multiple Fragments can be used in an Activity to create a multi-panel user interface.

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

What does the FragmentManager class do?

A

It manages FragmentTransactions to add, move, and transition between fragments.

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

How does an app issue a change to a widget?

A

By broadcasting an intent that the widget is listening for.

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

How is a web service queried for data?

A

A request is created then sent to the appropriate target, a callback is set and is invoked when the web service returns some data. This avoids having the execution block until data is returned.

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