COP 4656 Mobile Programming Mid Term

Ace your homework & exams now with Quizwiz!

To change the background color to white, locate the Background property in the Properties windows and set its value to ____

#ffffff

Generally speaking, an activity will be in one of the following four states:

Active, Paused, Stopped, Dead

_____ are reusable components used to build an app's user interface

Activities

ListView is a subclass of ___

AdapterView

A/n ___ is a type of message that pops up, grabs the focus and stays there until closed by the user

AlertDialog

Using Eclipse with the ___ Plugin, you can create, run, test and debug Android apps quickly and conveniently, and you can visually design your user interfaces

Android Development Tools (ADT)

Before running an app in the emulator, you'll need to create an ____, which defines the characteristics of the device on which you want to test, including the hardware, system image, screen size, data storage and more.

Android Virtual Device (AVD)

You can adjust the minimum number of characters that a user must enter before the list filtering starts in the AutoCompleteTextView widget by using the ___ property.

Android:completionthreshold

The ____ file , referred to as the manifest, provides information needed to run your app in Android and to filter it properly in Android Market.

AndroidManifest.xml

A program unit called a ____ houses the moethods that perform its tasks.

Class

GUI programming in JAVA is ___-driven, you'll write apps that respond to various user interactions such as screen touches and keystrokes

Event

The ____ (layout) allocates space for a single component. You can add more than one component to this layout, but each will be displayed from the layout's upper-left corner. The last component added will appear on top.

FrameLayout

Which of the following is not a situation that would call onCreate()?

If the activity had been running, paused and then resumed.

If using fonts other than those provided by default, the widgets will need to know that the addition fonts exist and to use them. This can be accomplished through ___

Java

When creating a Web Browser using the WebView widget, by default, you will be unable to render web pages that contain ___

JavaScript

The default GUI for a new Android app consists of a ____ (layout) with a black background.

LinearLayout

The layout ___ arranges components horizontally in one row or vertically in one column

LinearLayout

By default, when there is a change in the phone configuration that might affect resource selection. Which of the following is NOT a type of configuration change that would trigger this destroy-and-recreate behavior?

Plugging in a USB cable

The Android browser is based on WebKit, which is the same engine that powers the ___ web browser.

Safari

Which of the following are pop-up messages seen in Android?

Toast, Alert

Just as you can adjust the preferences, settings, or options in your favorite web browser, the same ability exists within the WebView widget through the ___ instance.

WebSettings

The IMF is commonly referred to as ___, even though other means of text input are possible via the screen

a soft keyboard

The ____, included in the Android SDK, allows you to run Android apps in a simulated environment within Windows, Mac OS X, or Linux.

android emulator

Package ___ contains the widgets and layouts that are used in Android GUIs, such as EditText, SeekBar, and TextView.

android.widget

Setting the ____ attribute to "center" centers the text in the TextView.

android:gravity

Which two types of menus are used by Android?

context menu, options menu

The two measurement units for density independent pixels are:

dip, dp

Which of the following would NOT be considered and advantage to using a widget.

error handling

A LinearLayout always arranges GUI components in a line horizontally

false

Background threads are a great method to bypass CPU utilization, thus saving battery life

false

By default, a SeekBar allows you to select values from 0 to 255

false

Defining the GUI in XML prevents you from separating your app's logic from its presentation

false

Due to the limited viewing space in a GridView, you are limited to just 2 columns.

false

Setting the android:layout_centerHorizontal attribute to "yes" centers the component horizontally in the layout.

false

The android:gravity attribute specifies how the text should be position with respect to the width and height of the TextView if the text is larger than the TextView

false

The layout TableLayout arranges components into a table of columns. You can then use the TableRow layout (a subclass of LinearLayout) to organize the columns.

false

Unlike layouts, only one menu XML can be used for each project.

false

When replacing a ListActivity's default layout, you must define a ListView in the layout and remove its android:id attribute

false

When using the MediaPlayer, once playback has been paused or stopped, playback can resume by simply calling start() again.

false

You must design your app for every possible screen size and density.

false

When working with Android's WebKit, what are the two main ways to get content into the WebView?

loadData(), loadurl()

The onclick() and onCreate() methods are called on the ___ thread

main application

For an Android app that you create with Eclipse, the GUI layout it stored in an XML file called ____, by default.

main.xml

Which 3 fonts are native to Android?

monospace, sans & serif

EditText widgets are ___ by default if you do not specity android:inputType.

multi-line

Android uses a collection of ____ , which are named groups of related predefined classes.

packages

Specifying the value match_parent for both the android:layout_width and android:layout_height attributes, causes the layout to occupy the entire width and height of layout's ____ element - that is , the one which this layout is nested in.

parent

Your project's res folder contains three subfolders for images-drawable-hdpi (high density), drawable-mdpi (medium density), and drawable-ldpi (low density). These folders store images with different ____ densities.

pixel

Layout files are considered app resources and are stored in the project's ____ folder. GUI layouts are placed within that folder's layout subfolder.

res

If you wish to localize your app in several different languages: In your project's res folder, the subfolder contains a ___ file that's used to store strings. You can create separate values folders for each language.

strings.xml

An Android ___ is a series of activities that enables the user to complete an objective within an app or across multiple apps.

task

A/n ___ message is one that displays and disappears on its own without user interaction

transient

Because Android devices have various screen sizes, resolutions, and pixel densities, Android allows you to provide separate images ( and other resources) that the operating system chooses based on the actual device's pixel density.

true

If you externalize colors values, all components that use the same color can be updated to a new color simply by changing the color value in a central resource file.

true

It's considered a good practice to "externalize" strings, string-arrays, images, colors, font sizes, dimensions, and other app resources so that you, or someone else on your team, can manage them separately from your application's code.

true

The Android Development Tools (ADT) Plugin for Eclipse --- an extension to the Eclipse IDE --- allows you to create, run and debug Android apps, export the for distribution (e.g. upload them to the Android Market) and more.

true

The Gallery widget will always show more than one choice at at time

true

The layout RelativeLayout arranges components relative to one another or relative to their parent container

true

When playing audio using the MediaPlayer class, if the media clip is a raw resource, both MediaPlayer create() and the resource ID of the clip are required.

true

Settings the android:layout_width and android:layout_height attributes to ___ indicates that the view should be just large enough to fit its content including its padding values that specify the spacing around the content

wrap_content


Related study sets

Lesson 1: Applying the principle of Superposition to Circuit Calculations

View Set

Practice Questions Care of the patient with Anxiety Disorders

View Set

Chapter 59: Assessment and Management of Problems Related to Male Reproductive Processes NCLEX

View Set