Exam 14: Making an Android Widget

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

The AsyncTask class uses three generic types that we must specify when extending it. The class header of a subclass is as follows: AccessModifier ClassName extends AsyncTask< Params, Progress, Result> where Params, Progress, and Result are placeholders for actual __________________ names.

Free
(Short Answer)
4.8/5
(40)
Correct Answer:
Verified

class

It is possible to style a widget with colors.

Free
(True/False)
4.9/5
(51)
Correct Answer:
Verified

True

The minimum time between automatic updates for a widget is 30 minutes.

Free
(True/False)
4.7/5
(42)
Correct Answer:
Verified

True

To create a widget, we define an AppWidgetProviderInfo object in an XML ____________ located in the res/xml directory.

(Short Answer)
4.8/5
(44)

It is possible to let the user customize a widget based on some user input.

(True/False)
4.8/5
(42)

A JSON string can include two data structures: an object and a(n) ____________.

(Short Answer)
4.8/5
(44)

App widgets, also known as widgets, are small apps that are embedded in other apps, called app widget hosts.

(True/False)
4.9/5
(40)

The JSONObject class, part of the org.json package, includes methods to parse a __________________ string.

(Short Answer)
4.8/5
(42)

It is possible to test a widget inside the emulator.

(True/False)
4.9/5
(40)

The AsyncTask class, from the android.os package, allows us to perform a task in the ____________.

(Short Answer)
4.8/5
(33)

What package contains classes that enable us to create and manage widgets?

(Multiple Choice)
4.9/5
(21)

What method of the RemoteViews class is the equivalent of the setTextColor method of the TextView class?

(Multiple Choice)
4.8/5
(34)

The AppWidgetProviderInfo includes two constants that correspond to the Home screen and Lock screen widget categories.

(True/False)
4.8/5
(30)

What is another name for the Lock screen?

(Multiple Choice)
4.9/5
(41)

The URL class encapsulates a URL.

(True/False)
4.8/5
(45)

What method of the AppWidgetProvider class is called when the widget first runs and when the widget is updated?

(Multiple Choice)
4.8/5
(36)

The openConnection method of the URL class returns a(n) ____________ reference.

(Short Answer)
5.0/5
(36)

What method of the RemoteViews class is the equivalent of the setText method of the TextView class?

(Multiple Choice)
4.9/5
(36)

What attribute, included in the XML file defining the AppWidgetProviderInfo for the widget, specifies the XML layout resource of the widget?

(Multiple Choice)
4.9/5
(37)

What is the name of the class that describes the metadata in a widget provider, such as icon and minimum width and height?

(Multiple Choice)
4.8/5
(37)
Showing 1 - 20 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)