Exam 14: Making an Android Widget
Exam 1: Basics of Android: Hello World23 Questions
Exam 2: Model View Controller, Gui Components, Events20 Questions
Exam 3: Coding the Gui Programmatically, Layout Managers20 Questions
Exam 4: Multiple Activities, Passing Data Between Activities, Transitions, Persistent Data22 Questions
Exam 5: Menus, Sqlite21 Questions
Exam 6: Managing the Device Orientation22 Questions
Exam 7: Touches and Swipes22 Questions
Exam 8: Graphics, Animations, Sounds and Gaming27 Questions
Exam 9: Fragments26 Questions
Exam 10: Using Libraries and Their Apis: Speech Recognition and Maps33 Questions
Exam 11: Using the Gps and Location Services21 Questions
Exam 12: Using an Existing App: Taking a Photo and Sending an Email28 Questions
Exam 13: Xml and Content Apps25 Questions
Exam 14: Making an Android Widget35 Questions
Exam 15: In App Advertising25 Questions
Exam 16: Security and Encryption23 Questions
Exam 17: Android Development: Extending Views, Fragments, and Google Maps Permissions127 Questions
Select questions type
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:
class
It is possible to style a widget with colors.
Free
(True/False)
4.9/5
(51)
Correct Answer:
True
The minimum time between automatic updates for a widget is 30 minutes.
Free
(True/False)
4.7/5
(42)
Correct Answer:
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)
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 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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)