Exam 14: Making an Android Widget

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

Which one of these strings is the only valid JSON string?

(Multiple Choice)
4.9/5
(43)

There are no restrictions regarding the use of Views and layout managers inside a widget.

(True/False)
4.7/5
(36)

What attribute, included in the XML file defining the AppWidgetProviderInfo for the widget, specifies the frequency of updates of the widget?

(Multiple Choice)
4.9/5
(38)

The execute method of the AsyncTask class accepts a variable number of arguments.

(True/False)
4.9/5
(40)

The getJSONObject method of the JSONObject class has this API: JSONObject getJSONObject( String name ) What does it return?

(Multiple Choice)
4.8/5
(39)

To create a widget, we need to extend the ____________ class or the BroadcastReceiver class.

(Short Answer)
4.9/5
(35)

A RemoteViews reference can be obtained by inflating an XML resource.

(True/False)
4.7/5
(47)

Widgets can receive periodic updates.

(True/False)
4.7/5
(41)

The __________________ method of the AppWidgetManager sets the RemoteViews for a widget based on its id.

(Short Answer)
4.8/5
(32)

If we allow the user to configure the widget, we need to add to the app-provider element an android:configure attribute in the widget configuration XML file.

(True/False)
4.8/5
(36)

What method of the AppWidgetProvider class is called when the last widget of a type of widget is deleted from the host screen?

(Multiple Choice)
4.8/5
(41)

What static method of the PendingIntent class can we use to create a PendingIntent?

(Multiple Choice)
4.8/5
(35)

The getInputStream method from the URLConnection class returns an InputStream.

(True/False)
5.0/5
(44)

The Home screen and the ____________ screen are examples of app widget hosts.

(Short Answer)
4.9/5
(44)

What method of the AsyncTask class is automatically called after doInBackground finishes?

(Multiple Choice)
4.8/5
(34)
Showing 21 - 35 of 35
close modal

Filters

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