Accounting
Anthropology
Archaeology
Art History
Banking
Biology & Life Science
Business
Business Communication
Business Development
Business Ethics
Business Law
Chemistry
Communication
Computer Science
Counseling
Criminal Law
Curriculum & Instruction
Design
Earth Science
Economic
Education
Engineering
Finance
History & Theory
Humanities
Human Resource
International Business
Investments & Securities
Journalism
Law
Management
Marketing
Medicine
Medicine & Health Science
Nursing
Philosophy
Physic
Psychology
Real Estate
Science
Social Science
Sociology
Special Education
Speech
Visual Arts
Question
If the resource ID ________ exists in MainActivity's layout, then the app is running on a phone.Answer
This answer is hidden. It contains 22 characters.
Related questions
Q:
To use in-app billing, you"ll need a ________ account and a Google Wallet merchant account. Google pays you 70% of the revenue for all in-app purchases made through your apps.
Q:
(True/False) According to Google, apps that use in-app billing earn profoundly more revenue than paid apps alone.
Q:
(True/False)You call CursorAdapter method changeCursor with the argument true to remove the Cursor from the CursorAdapter.
Q:
(True/False) Each AsyncTask can be executed many times.
Q:
You call ListView method ________ to indicate that only one item can be selected at a time.
Q:
When we need a database operation's results in the GUI thread, we"ll use a subclass of ________ (package android.os) to perform the operation in one thread and receive the results in the GUI thread.
Q:
Color's static methods alpha-, red, green and blue extract the ARGB values from the color, and SeekBar's ________ method positions the thumbs.
Q:
(True/False) Store the image in the device's Gallery by calling class MediaStore.Images.Media's insertImage method. Method insertImage returns a String representing the image's location on the device, or null if the image could not be saved.
Q:
Call Path's ________ method to set the Path's starting coordinates and specify the new Point's x and y values.
Q:
Which of the following statements is false?a. Motion-Event's getActionMaskedmethod returns an int representing the MotionEvent type, which you can use with constants from class MotionEvent to determine how to handle each event.b. Motion-Event's getActionIndex method returns an integer index representing which finger caused the event. This index is the finger's unique ID.c. To get the finger's unique ID that persists across MotionEvents until the user removes that finger from the screen, we"ll use Motion-Event's getPointerID method, passing the finger index as an argument.d. If the action is MotionEvent.ACTION_DOWN or Motion Event.ACTION_POINTER_DOWN, the user touched the screen with a new finger.
Q:
When a View needs to be redrawn, its onDraw method is called. The first argument is the Bitmap to draw, the next two arguments are the x-y coordinates where the upper-left corner of the Bitmap should be placed on the View and the last argument is the ________ object that specifies the drawing characteristics.
Q:
(True/False) You set a line's width using Paint's setLineWidth method.
Q:
You register to receive accelerometer events using SensorManager's registerListener method. One of its arguments is the rate at which sensor events should be delivered to the app. Why would you specify SENSOR_DELAY_NORMAL to receive sensor events at the default rate, instead of choosing a faster rate?
Q:
(True/False) Like an Activity, a Fragment can place items in the app's action bar and options menu. To do so, the Fragment must call its setHasOptionsMenu method with the argument true.
Q:
(True/False) A GestureDetector allows an app to react to user interactions such as flings, single taps, double taps, long presses and scrolls by implementing the methods of interfaces GestureDetector.OnGestureListener and Gesture-Detector.On-Double-Tap-Listener interfaces.
Q:
You use the type of a ________ to determine whether the user has touched the screen, dragged across the screen or lifted a finger from the screen.
Q:
(True/False) You process touch events by overriding the View method on Touch Event.
Q:
The last Fragment lifecycle method called when a Fragment is about to be detached from a parent Activity is ________.
Q:
With Android's ________ you can draw on the entire screenthe device's system bars and action bar toggle between displayed and hidden when you tap the screen.
Q:
(True/False) A FrameLayout is designed to display many Views.
Q:
An app's sound effects are managed with a ________ (package android.media), which can be used to load, play and unload sounds.
Q:
(True/False) The DialogFragment's onCreateDialog method uses an ________ to configure and create an AlertDialog, then returns it.
Q:
(True/False) Activity is an indirect subclass of Context.
Q:
We use the WindowManager to get a Display object that contains the screen's current width and height, which changes based on the ________.
Q:
For each Fragment layout, you"ll add a layout XML file to your app's ________ and specify which Fragment class the layout is associated with.
Q:
(True/False) You typically provide images and other visual resources in the highest available resolution so Android can scale each appropriately for each particular device's pixel density.
Q:
(True/False) Unlike an app's drawable folders, which require their image contents to be at the root level in each folder, the assets folder may contain files of any type and they can be organized in subfolders.
Q:
An Intent includes a Bundle of ________additional information that's passed to the Activity that handles the Intent. For example, an e-mail Activity can receive the e-mail's subject, CC and BCC addresses, and the body text.
Q:
Passing an Intent to the inherited Activity method startActivity starts an Activity that can perform the specified action on the given data. If we"ve specified to view a URI, the Intent launches the device's ________ to display the corresponding web page.
Q:
When you create an app project, the IDE generates ________ as a subclass of Activity and provided the shell of an overridden onCreate method, which every Activity subclass must override.