What is contained within the manifest xml file?
Answer: The permissions the application requires Correct
...
Which of the following used to detect when a user clicks or taps on a button?
Which of the following used to detect when a user clicks or taps on a button?
Answer: OnClickListen...
How to set data for a Spinner control?
How to set data for a Spinner control?
Answer: Use method setAdapter...
On android, a layout can contain other layout?
On android, a layout can contain other layout?
Answer: Tr...
Which dialog box can you use in you Android application?
Which dialog box can you use in you Android application?
Answer: AlertDial...
What is NotificationManager class?
What is NotificationManager class?
Answer: The NotificationManager class is used to display notifications on the device's status bar
...
Which statement correctly changes the nameLabel TextView to Nguyen Van A?
Which statement correctly changes the nameLabel TextView to Nguyen Van A?
Answer: nameLabel.setText("Nguyen Van A");
...
What is contained within the Layout xml file?
What is contained within the Layout xml file?
Answer: Orientations and layouts that specify what the display looks like
...
How do you programmatically determine whether a RadioButton is checked?
How do you programmatically determine whether a RadioButton is checked?
Answer: You should check the isChecked() method
...
Android: Which attribute will be used in XML if the Java code needs a reference to View?
Android: Which attribute will be used in XML if the Java code needs a reference to View?
Answer: android:...
Android: What is value on component's attribute "layout_width" and "layout_height" to display the component big enough to enclose its content only?
Android: What is value on component's attribute "layout_width" and "layout_height" to display the component big enough to enclose its content only?...
What is contained within the manifest xml file?
What is contained within the manifest xml file?
Answer: The permissions the application requires Correct
...
Which of the following used to detect when a user clicks or taps on a button?
Which of the following used to detect when a user clicks or taps on a button?
Answer: OnClickListen...
What is the android:versionCode attribute in the AndroidManifest.xml file?
What is the android:versionCode attribute in the AndroidManifest.xml file?
Answer: dai cmn nh...
Which of the following methods is used to return a View from a layout file given the ID of the View?
Which of the following methods is used to return a View from a layout file given the ID of the View?
Answer: findViewById(int i...
How do you access the string resource stored in the strings.xml file?
How do you access the string resource stored in the strings.xml file?
Answer: You can use the getResources() method
...
Which of the following is layout that you can use in a window in an Android application?
Which of the following is layout that you can use in a window in an Android application?
Answer: FrameLayo...
Activity results handled by the onActivityResult() method are differentiated from one another using which
Activity results handled by the onActivityResult() method are differentiated from one another using which
Answer: Result Co...
What is contained within the Layout xml file?
What is contained within the Layout xml file?
Answer: Orientations and layouts that specify what the display looks like
...
Android is based on which language?
Android is based on which language?
Answer: Objective...
Can you deploy executable JARs on Android?
Can you deploy executable JARs on Android?
Answer: Fal...
Which company developed android?
Which company developed android?
Answer: Android Inc
...
Which of the following are UI elements that you can use in a window in an Android application?
Which of the following are UI elements that you can use in a window in an Android application?
Answer: TextVi...
How will you launch an Activity within your application?
How will you launch an Activity within your application?
Answer: startActivity(intent...
How will you pass data to sub-activities?
How will you pass data to sub-activities?
Answer: Use Bundl...
The Intent object is passed to this method to deliver the message to all interested broadcast receivers
The Intent object is passed to this method to deliver the message to all interested broadcast receivers
Answer: Context.sendBroadcast...
The Intent object is passed to this method to launch a new activity or get an existing activity to do something new
The Intent object is passed to this method to launch a new activity or get an existing activity to do something new
Answer: Context.startAct...
Does Android support AWT and Swing?
Does Android support AWT and Swing?
Answer: ...
Which of the following is/are appropriate for saving the state of an Android application?
Which of the following is/are appropriate for saving the state of an Android application?
Answer: Activity.onPause...
Which of the following is NOT a life-cycle methods of an Activity?
Which of the following is NOT a life-cycle methods of an Activity?
Answer: onIn...
Where can you define the icon for your Activity?
Where can you define the icon for your Activity?
Answer: In the manifest xml fi...
Is it possible to run java source code directly on Android?
Is it possible to run java source code directly on Android?
Answer: Fal...
What is contained within the Layout xml file?
What is contained within the Layout xml file?
Answer: Orientations and layouts that specify what the display looks like.
...
Where will you declare your activity so the system can access it?
Where will you declare your activity so the system can access it?
Answer: In the manifest xml fi...
What is an Activity?
What is an Activity?
Answer: A single screen in an application, with supporting Java code
...
Android is licensed under which open source licensing license?
Android is licensed under which open source licensing license?
Answer: Apache/M...
What does the .apk extension stand for?
What does the .apk extension stand for?
Answer: Android Packa...
Which of the following are true about Intent.CALL_ACTION?
Which of the following are true about Intent.CALL_ACTION?
Answer: dial + diall...
Why can't you run standard Java bytecode on Android?
Why can't you run standard Java bytecode on Android?
Answer: Android uses Dalvik Virtual Machi...
The Intent object is passed to this method to initiate a service or deliver new instructions to an ongoing service
The Intent object is passed to this method to initiate a service or deliver new instructions to an ongoing service
Answer: Context.startServ...
The intents can communicate messages among any of the three core components of an application:
The intents can communicate messages among any of the three core components of an application:
Answer: activities, services, broadcast recei...
Which of the following should be used to save the unsaved data and release resources being used by an Android application?
Which of the following should be used to save the unsaved data and release resources being used by an Android application?
Answer: Activity....
Intents do not name a target and the field for the component name is left blank.
Intents do not name a target and the field for the component name is left blank.
Answer: Implicit Inten...
Which of the following is the parent class for the main application class in an Android application that has a user interface?
Which of the following is the parent class for the main application class in an Android application that has a user interface?
Answer: Activ...
Which of the following are UI elements that you can not use in a window in an Android application?
Which of the following are UI elements that you can not use in a window in an Android application?
Answer: SliderB...
The R.java file is where you edit the resources for your project.
The R.java file is where you edit the resources for your project.
Answer: Fal...
Which one is not a nickname of a version of Android?
Which one is not a nickname of a version of Android?
Answer: Muff...
For writing Android code using C/C++, you need to use__________
For writing Android code using C/C++, you need to use__________
Answer: N...
Intents designate the target component by its name and they are typically used for application-internal messages.
Intents designate the target component by its name and they are typically used for application-internal messages.
Answer: Explicit Inten...
What is an intent object?
What is an intent object?
Answer: An Intent object is a bundle of informati...
If you want to pass data to the receiver, what method of the Intent class can you use to store data in the Intent object?
If you want to pass data to the receiver, what method of the Intent class can you use to store data in the Intent object?
Answer: putExt...
If a broadcast receiver uses permissions, you can request those permissions by adding an element to the AndroidManifest.xml file. What's the name of that element?
If a broadcast receiver uses permissions, you can request those permissions by adding an element to the AndroidManifest.xml file. What's the name of...
If you want to get String data from the intent for a broadcast action, what method of the Intent class can you use?
If you want to get String data from the intent for a broadcast action, what method of the Intent class can you use?
Answer: getStringExt...
Which permission is required for a broadcast receiver for the CONNECTIVITY_CHANGE action?
Which permission is required for a broadcast receiver for the CONNECTIVITY_CHANGE action?
Answer: ACCESS_NETWORK_STA...
What element do you add to a project's AndroidManifest.xml file to register a broadcast receiver?
What element do you add to a project's AndroidManifest.xml file to register a broadcast receiver?
Answer: A receiver eleme...
When you code a class that defines a broadcast receiver, you override a method that's executed when the broadcast is received. What's the name of this method?
When you code a class that defines a broadcast receiver, you override a method that's executed when the broadcast is received. What's the name of this...
Given an Intent named intent for a broadcast action, which of the following statements sends the broadcast?
Given an Intent named intent for a broadcast action, which of the following statements sends the broadcast?
Answer: sendBroadcast(intent...
Which statement follows the best practices for defining a constant for an action that can be broadcast?
Which statement follows the best practices for defining a constant for an action that can be broadcast?
Answer: public final static String ACTION_NEW...
The Android operating system ______ certain ______ that occur as a device is being used.
The Android operating system ______ certain ______ that occur as a device is being used.
Answer: broadcasts, actio...
You can use ______ code to register and unregister a broadcast receiver.
You can use ______ code to register and unregister a broadcast receiver.
Answer: Ja...
A broadcast ____ is an application component that listens for a broadcast and executes code when it receives that broadcast.
A broadcast ____ is an application component that listens for a broadcast and executes code when it receives that broadcast.
Answer: receiv...
Every broadcast has a/an ______ string that uniquely identifies the action.
Every broadcast has a/an ______ string that uniquely identifies the action.
Answer: acti...
Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the following statements removes the notification? final int NOTIFICATION_ID = 999;
Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the...
Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the following statements displays the notification? final int NOTIFICATION_ID = 999;
Assume you have the following constant value, a NotificationManager object named manager, and a Notification object named notification. Which of the...
If you want to execute a task in the background once every hour, even if the app is no longer running, you can use _____ to start a timer that runs the task.
If you want to execute a task in the background once every hour, even if the app is no longer running, you can use _____ to start a timer that runs...
Given the following Intent object for a service, which of the following statements starts the service? Intent serviceIntent = new Intent(this, WeatherService.class);
Given the following Intent object for a service, which of the following statements starts the service?Intent serviceIntent = new Intent(this, Weath...
Which methods are called for a bound service?
Which methods are called for a bound service?
Answer: onCreate(), onBind(), onUnbind...
Which methods are called for an unbound service?
Which methods are called for an unbound service?
Answer: onCreate(), onStartCommand(), onDestroy...
Given an Application object named WeatherApp, which of the following gets the Application object?
Given an Application object named WeatherApp, which of the following gets the Application object?
Answer: WeatherApp app = (WeatherApp) getA...
Which of the following creates an Application object named WeatherApp?
Which of the following creates an Application object named WeatherApp?
Answer: public class WeatherApp extends Application ...
To check if a network connection is available to the device, you can use a/an ____ object.
To check if a network connection is available to the device, you can use a/an ____ object.
Answer: ConnectivityManag...
To display or remove a notification, you can use a/an ____ object.
To display or remove a notification, you can use a/an ____ object.
Answer: NotificationManag...
When it's first displayed, a notification appears as an icon in the ____ at the top of the screen.
When it's first displayed, a notification appears as an icon in the ____ at the top of the screen.
Answer: notification ar...
A/an ____ provides a way for a service to display a message even when another app is running.
A/an ____ provides a way for a service to display a message even when another app is running.
Answer: notificati...
To test a service, it's common to use the ___________ class to print messages.
To test a service, it's common to use the ___________ class to print messages.
Answer: L...
A/an ____ service is a service that's provided by the Android operating system.
A/an ____ service is a service that's provided by the Android operating system.
Answer: syst...
The back stack for a particular task is called the task ____.
The back stack for a particular task is called the task ____.
Answer: histo...
A/an ____ is a cohesive unit that can contain multiple activities.
A/an ____ is a cohesive unit that can contain multiple activities.
Answer: ta...
A stack of all recently used activities, sorted in the order in which they were used is called a/an ____.
A stack of all recently used activities, sorted in the order in which they were used is called a/an ____.
Answer: back sta...
To view a notification, the user can pull down on the notification area to open the notification ____.
To view a notification, the user can pull down on the notification area to open the notification ____.
Answer: drawer
...
Before you can use an Application object or a service, you must ____ it.
Before you can use an Application object or a service, you must ____ it.
Answer: regist...
A/an ____ intent is an intent that can be passed to other apps so that they can execute the intent at a later time.
A/an ____ intent is an intent that can be passed to other apps so that they can execute the intent at a later time.
Answer: pendi...
What are the three layout managers?
What are the three layout managers?
Answer: LinearLayout, RelativeLayout, and FrameLayo...
What is meant by responsive design?
What is meant by responsive design?
Answer: Its a layout that adjust automatically depending on screen siz...
Where are permissions declared?
Where are permissions declared?
Answer: AndroidManifest.xml fi...
What are the four AsyncTask methods that must be overridden?
What are the four AsyncTask methods that must be overridden?
Answer: onPreExecute, doInBackground, onProgressUpdate, onPostExecu...
Logging methods require two strings, what does each string represent?
Logging methods require two strings, what does each string represent?
Answer: The first string (Tag) identifies where the log is coming from and the...
What are the names of the specific logcats?
What are the names of the specific logcats?
Answer: Verbose, Debug, Info, Warn and Err...
How many different logcat types are there?
How many different logcat types are there?
Answer:...
_____ is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative to XML.
_____ is a minimal, readable format for structuring data. It is used primarily to transmit data between a server and web application, as an alternative...
____ enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers.
____ enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having...
The ______ system provides a mechanism for collecting and viewing system debug output.
The ______ system provides a mechanism for collecting and viewing system debug output.
Answer: logging (Logca...
An _____ used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose length is not known in advance.
An _____ used to send and receive data over the web. Data may be of any type and length. This class may be used to send and receive streaming data whose...
Subscribe to:
Posts (Atom)