android 1-4
the extension for a java bytcode file is...
.class
the extension for a java source file is __
.java
Which of the following is true
Android is a Linux-based operating system designed primarily for touchscreen mobile devices. Android code is open source. Android is designed for smartphones and tablets. All of the above. (yes
Native libraries in the Android stack are written in ___
C/C++
in java to activate the completion feature press
Ctrl+Space
When the IDE builds a project, it compiles the _____ into _____ and then into __
Java source code (.java files), Java bytecodes (.class files), Dalvik executable files (.dex files)
which directory would you expand with package explorer to display java code in an editor
SRC
Given an EditText widget named usernameEditText, which of the following statements gets the string that's stored in that widget?
String username = usernameEditText.getText().toString();
in order to more easily internationalize your app, it is considered best practice to store the display text for your app in a seperate ___ file
XML
the eclipse work bench provides CODE EDITORS for working with
XML and SQL files
One of the advantages of using Eclipse when developing a new app is that Eclipse generates some of the beginning code for you. Types of code that Eclipse typically generates is:
XML for the user interface for the activity Java code that displays the user interface
a layout is
a container that determines where the child elements are displayed on the screen
an editorAction event typically occurs when the user presses an ____ on a soft-keyboard
action key
in the XML editor you can
add widgets code comments set widget properties
the android debug bridge (ADB)
allows your IDE to connect with an emulator or physical device
which of these is NOT part of the linux stack?
android SDK
When an IDE builds a project, it puts the .dex files and the rest of the files for the project in an __
android package
Given the following code in the strings.xml file, which of the following properties sets the text on the widget to "Continue"?
android:text="@string/continue"
the click event is available from most widgets but it is usually used for
buttons
in eclipse you can use the ___ feature to make it easier to enter the names of classes, objects, methods, fields, and values
code completion feature
what do android package (.apk) files contain?
compiled resources uncompiled resources .dex files
widgets can also be referred to as ___
controls
The screen that appears to the right of of an app in an Android virtual device that emulates the arrow keys that are available from some Android devices is known as a/an
d-pad
Dalvik executable files (.dex files) can be run by the ____
dalvik virtual machine
in android a __ controls how its child elements are displayed
default
although android supports other units of measurement, its a best practice to use
density-independant pixels
an example of an IDE is?
eclipse
an android virtual device (AVD) is an
emulator
in eclipse code that wont compile properly is known as an
error
an___is a special type of method thats executed when an event occurs
event handler
a layout can also be referred to as a
form
for most widgets, you can use which method(s) to get and set the text thats displayed in the widget
getText and setText
in eclipse, to view and work with your user interface, you open the
graphical layout editor
when an activity is in the paused state, the activity
has lost the focus and may be partially hidden by other activities
an __ is a user control such as soft-keyboard that enables users to input data, often text
input method editor (IME)
it is best to use density-independant pixels (dp) for padding because...
it allows apps to scale properly on different devices
the SRC directory contains the
java source code
A ___ is a container that determines where child elements are displayed on a screen.
layout
Android is a ___-based operating system.
linux
an object that listens for an event is known as a
listener
Developing apps that are appropriate for different locales is known as ___
localization
the ___ is an XML file that specifies the first activity to launch when the app is started
manifest
any major release of android is...
named after something sweet correspond with an Application Programming Interface (API) number
android does not always save the data of an activity
navigate away from the activity to another activity or app change orientation
when an activity is started, android runs wich method?
onCreate
when an app starts for the first time android calls the...
onCreate,onStart, and onResume
to restore values you have saved in your app you can use, you can override the __ method
onResume
the __ is an organization devoted to advancing open standards for mobile devices
open handset alliance
to set a property for a widget you select the widget in which view?
outline
in eclipse, open projects are displayed in ___ view
package
the eclipse workbench provides multiple views such as
package explorer outline console
To use the documentation for the Android API, you can select a/an ____ in the top left frame, and a/an ___ in the lower left frame.
package,class
within the SRC directory, the files can be organized into one or more ____ where each one corresponds with a subdirectory
packets
a common property for layout is...
padding height width
in eclipse you can add widgets to a layout by dragging them from the ___ on to the layout in the graphical layout editor
palette
android can be used to develop which type of apps?
photography finance reference all of the above (yes)
A _____ contains all of the files for an app including the files for the Java source code.
project
in eclipse a ___consists of a top-level directory that contain the subdirectories and files for an app
project
in Eclipse errors in code can be fixed fast using the ___ feature
quick fix feature
In Eclipse, by default, a new Android application includes a layout file that uses a/an ___ layout and a single TextView widget.
relative
the __ specifies what eclipse should do when you open an android app, including which emulator of physical device to use
run configuration
eclipse...
runs on all modern OS's is free is open-source
for the text-size property its generally considered best practice to use
scale-independant pixels
to permanently save values in your app, you can use the ___ class
shared preferance
For security reasons, all Android apps must be digitally ___ with a certificate.
signed
an on-screen keyboard is known as a
soft keyboard
SDK stands for _____.
software development kit
The Android system architecture is also known as the Android _
stack
the display text for an app is typically stored in the __ file
strings.xml
to switch the workspace to a specified directory, you would select the
switch workspace from the file menu
a textView can be referred to as a
text view
The EditText element displays the widget that allows the user to enter text. This widget can be referred to as a ___
textbox
three common type of widgets are...
textview d-pad edit-text
a ___ is a group of styles that define the look of a layout
theme
You can use Android to develop apps for ___ mobile devices such as smart-phones and tablet computers.
touchscreen
in an eclipse workbench, the different parts are known as
views
the different part of the eclipse workbench are known as
views
typically, an event occurs when a user interacts with a
widget
In Android, controls are typically referred to as ____
widgets
in adroid development the controls that make up the user interface are known as
widgets
there are three steps to handle an event 1.import the interface that defines a listener 2. implement the listener 3...
wire the listener to a widget
the ___ is the directory thats used by eclipse to store the subdirectories and files it needs to work
workspace
if the hardware keyboard option is NOT enables for a emulator...
you can use soft keyboard to enter text