• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/112

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

112 Cards in this Set

  • Front
  • Back
What is an Activity?
A single screen with a user interface and a container for your application as well as the code)
What is an Intent?
Intents are part of the message system and used to initiate actions.
What are Intents composed of?
Actions and data that actions operate upon.
What needs to be done to make sure an intent is processed?
An intent listener needs to be registered.
What happens if more than one intent listener is registered for one intent?
The user is presented with a chooser to select the application to process the intent.
What happens if Android doesn't find an intent listener for the intent that was sent?
The application crashes with a run-time error.
What is used instead of a right-click in Android apps?
The long press.
What is a view?
A rectangular UI element responsible for drawing and event handling.
Name some View elements.
View, ContextMenu, Menu
What are Widgets?
More advanced UI elements that a user can interact with, e.g. checkboxes.
Name some examples of widgets.
Button, Checkbox, DatePicker, Gallery, DigitalClock.
In which package are widgets located?
android.widgets
What's the purpose of the AsyncTask class?
It allows you to run multiple operations at the same time without managing separate threads.
What are some of the built-in hardware features of Android?
GPS, compass, proximity sensor, accelerometer, bluetooth radio, camero.
What elements are part of the Linux Android Kernel?
Memory Management, Process management, network stack, driver model
Which items are part of the Android Framework?
Android run time (Dalvik virtual machine, java libs), Open GL (graphics), WebKit (browser), SQLLite (db), Media frameworks (audio & video processing) SSL, libc
Name some of the elements that are part of the Application Framework.
Activity Manager, window Manager, Content Providers, View System, Package Manager, Telephony Manager, Location manager, notification manager.
Name some of the android default apps
Home, Contacts, Phone, Browser, etc.
Who supports Android?
the open handset alliance led by Google.
What's needed for Android development?
Android SDK, IDE such as Eclipse, Android NDK, and Android ADT.
What is the Android ADT?
Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications.
What does adb stand for?
Android debug bridge.
Which Android platform (version) is used the most?
version 2.2
Name some of the sub directories for the Android SDK.
tools, docs, usb_drivers, temp, add-ons, and samples
How can you test Android apps without an actual Android device?
Using the emulator.
What are some disadvantages of using an emulator?
Certain hardware features such as bluetooth or GPS are not available.
What does DDMS stand for?
Dalvik Debug Monitor Service
Which API Level corresponds with platform version 2.2?
8
Which API Level corresponds with platform version 3.0?
11
What does AVD stand for?
Android Virtual Device == emulator.
What is the Nomenclature for AVDs?
{TARGET_Version}_{SKIN}_{SCREENSIZE}_[{OPTIONS}]
What are the two launch configurations for Android?
Run and debug.
How do you structure your source code inside the src folder?
Create multiple packages.
What is the android.jar?
The library file of the API level which your project in built against.
What is located in the asset folder?
Raw assets used in the application such as xml, video, or audio files.
What is located in the res folder?
Resources used by the application (e.g. Strings or images). Each resource has an id.
What is the resource folder 'anim' for?
For XML files that define animation.
What is the resource folder 'color' for?
For XML files that define colors
What is the resource folder 'drawable' for?
For bitmap files (e.g. png, jpg, gif, etc)
What is the resource folder 'layout' for?
XML files that define a user interface layout.
What is the resource folder 'menu' for?
XML files that represent application menus.
Where can you find the stack trace in eclipse?
In the DDMS perspective / LogCat pane.
Where is the AndroidManifest.xml located?
In the root of the project.
which file is used in connection with ADT and eclipse?
default.properties.
Should you edit the default.properties by hand?
No No.
What's the file called in which layouts are stored?
res/layouts/main.xml
What is a LinearLayout?
A layout that arranges children in a single row.
What is a RelativeLayout?
A layout where the positions of the children can be described in relation to each other or to the parent.
What is a TableLayout?
A layout that arranges its children into rows and columns.
what are the three Android layout types?
Linear, Relative, and TableLayout.
What's the icon size of the different resolutions?
ldpi: 36x36
mdpi: 48x48
hdpi: 72x72
Which two methods do almost all Activities implement?
onCreate and onPause.
What are the four states of an Activity
1. Active/running
2. Paused
3. Stopped
4. Create & resuming
How can you install the app to the emulator from cmd line?
adb install "Your App.apk"
How to log to DDMS?
import android.util.Log;
Log.d("SilentModeApp","This is a test");
What is a dimension?
An android resource. A number followed by a unit of measure, e.g. px, in, or sp.
What does dp stand for (dimension) and what does it mean?
density-independent pixels. Units relative to a 160-dots per inch screen. 1dp is one pixel on a 160-dpi screen.
What does sp stand for (dimension) and what does it mean?
scale-independent pixels. Dimension scaled according to the users font-size preferences. Use when specifying font sizes.
What does pt stand for (dimension) and what does it mean?
Points. About 1/72 inches.
What does px stand for (dimension) and what does it mean?
Pixels. Based on the actual pixels on the screen. Not recommended since it does not scale with different device resolutions.
What does mm stand for (dimension) and what does it mean?
Millimeters. Based on the size of the screen.
What does in stand for (dimension) and what does it mean?
Inches. Based on the physical size of the screen.
What is an Android Style?
A resource that is a collection or properties that can be applied to views, activities, or the application.
What is a Theme?
A style that is applied to an entire activity or application (rather than to a view).
Give an example of the items that can be specified in the Values Resource.
Bool, Integer, Integer array, typed array.
What are Menus?
Android resources that can be defined through xml. Each menu has an xml file.
What is a home-screen widget?
A miniature application that can be embedded in the home screen.
What is an AppWidgetProvider?
A class that lets ou interface with the add widget on the home screen.
What is a Toast?
A small message that is displayed to the user for a few seconds.
What are the two types of Android click events?
Click and long click.
What are the three types of Menus?
Options, Context, and Submenu.
What is an option menu?
A menu that can start an activity.
What is a Context menu?
A floating list of menu items that is presented on long-press.
What is a Submenu?
A floating list of menu items that a user opens by clicking on a menu item on the Options or Context menu.
What are the four types of Application Components?
Activities, Services, Broadcast Receivers, and Content Providers.
How do you implement an Activity?
By subclassing the android.Activity class.
How do you implement a Service?
By subclassing the android.Services class.
How do you implement a ContentProvider?
By subclassing the android.ContentProvider class.
How do you implement a BroadcastReceiver?
By subclassing the android.BroadcastReceiver class.
Does an Android program have a main() function?
No. It has multiple entry points. An Intent starts an activity.
Which application components are started by Intents?
Activities, Services, and Broadcast Receivers.
How is a ContentProvider targeted?
By a request from a ContentResolver.
How do you start an Activity that doesn't require a result?
By passing an Intent to startActivity().
How do you start an Activity that does require a result?
By passing an Intent to startActivityForResult().
What are the two ways to start a service?
1. pass an Intent to startService()
2. Bind to the service by passing an Intent to bindService()
How do you initiate a broadcast?
Passing an intent to methods like sendBroadcast(), sendOrderedBroadcast() or snedStickyBroadcast().
How do you access a ContentProvider()
By performing a query() to a ContentResolver.
What are some of the tasks of the AndroidManifest.xml?
1. Define application components.
2. Identify user permissions for the application
3. Declare a min. API level
4. Declare hardware and software features required (e.g. camera)
5. List API libs to link against.
Which tag declares the Activity component in the AndroidManifest.xml?
<activity>
Which tag declares the Service component in the AndroidManifest.xml?
<service>
Which tag declares the ComponentReceiver component in the AndroidManifest.xml?
<receiver>
Which tag declares the ComponentProvider component in the AndroidManifest.xml?
<provider>
How does the system identify components that can respond to an Intent?
By adding intent-filters to the component in the AndroidManifest.xml.
Which algorithm is used by the system to manage activities
last in - first out on the back stack.
Which method is called when the system creates an activity?
onCreate()
Which method is called when the user leaves the activity?
onPause()
How do you start the SignInActivity of another application?
Intent intent = new Intent(this, SignInActivity.class);
startActivity(intent);
Which method shuts down an Activity?
finish() or finishActivity().
How do you handle different Activity states, such as Stopped, Resuming?
by overriding the corresponding methods such as onStop() or onResume().
How do you specify the width of a view?
e.g. android:width="10dip"
What are some of the Android storage options?
Shared preferences, internal storage, local cache, external storage, SQLite database, Network connection.
What is a shared preferences?
Private data stored in key-value pairs.
What is internal storage?
A location where files can be saved on the device's internal storage.
What is the default permission for internal storage?
the files are private to the application.
What is the local cache?
An internal data directory where data is stored in a non-persistent manner.
What is External storage?
Location to store files, e.g. Secure Digital Card (SD Card).
What is the default permission for external storage files?
They are public.
What method should be used to be the local cache directory?
getCacheDir()
Which method should be used to get the external files directory?
getExternalFilesDir() on the Context object.
where can you find icon samples?
In the Android Template pack.
What is the DDMS?
Android ships with a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.
How does the DDMS interact with the debugger?
On Android, every application runs in its own process, each of which runs in its own virtual machine (VM). Each VM exposes a unique port that a debugger can attach to.

When DDMS starts, it connects to adb. When a device is connected, a VM monitoring service is created between adb and DDMS, which notifies DDMS when a VM on the device is started or terminated. Once a VM is running, DDMS retrieves the the VM's process ID (pid), via adb, and opens a connection to the VM's debugger, through the adb daemon (adbd) on the device. DDMS can now talk to the VM using a custom wire protocol.

DDMS assigns a debugging port to each VM on the device. Typically, DDMS assigns port 8600 for the first debuggable VM, the next on 8601, and so on. When a debugger connects to one of these ports, all traffic is forwarded to the debugger from the associated VM. You can only attach a single debugger to a single port, but DDMS can handle multiple, attached debuggers.

By default, DDMS also listens on another debugging port, the DDMS "