• 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/28

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;

28 Cards in this Set

  • Front
  • Back

What are the Android Architecture layers?

From top to bottom:


Applications


Application Framework


Libraries <> Android Runtime


Linux Kernel

What are the Linux kernel standard services?

Device Drivers


File & Network I/O


Memory & Process Management


Security

What are the Linux kernel Android specific services?

Inter-process Communication


Low Memory Killer


Power Management


Shared Memory

What does the Android run-time layer handle?

The writing and running of Android applications.

What are the two main components of the Android Run-time layer?

Core Java libraries


Dalvik Virtual Machine, later Android Run-time (ART).

List the seven intent fields.

Action


Category


Component


Data


Extras


Flags


Type

What action strings are passed down into intent fields?

ACTION_DIAL


ACTION_EDIT


ACTION_MAIN


ACTION_SYNC


ACTION_VIEW

How would you write an intent filter in the Android manifest?

<activity>


<intent-filter>


<action android:name="actionName />


</intent-filter>


</activity>

What are the four application components?

Activity


Broadcast Receiver


Content Provider


Service

What does an activity do?

Provides a visual interface for user interaction. Each activity typically supports one focused thing a user can do, for example viewing an email message. Applications often contain several activities.

How is layout of the user interface formed?

Information about the user interface is stored as XML files, typically located in res/layout/


They can be accessed in Java as:


R.layout.layout_name


or in other resources as:


@layout/layout_name

What is included in the Android manifest?

Application Name


Components


Features / Required Hardware


Minimum API Level


Other


Required Permissions



How are permissions represented in Android?

They are declared as strings in the Android manifest file.

How would you write permissions in the Android manifest file?

<manifest>


<uses-permission android:name="android.permission.CAMERA"


/>


</manifest>

What is a view?

It is a building block for user interface components. A view occupies a rectangular space on the screen, they are responsible for drawing elements and for handling events.

What is a view group?

It is an invisible view that contains other views. They are used for grouping and organising a set of views and act as the base class for view containers & layouts.

What is a layout?

It is a generic viewgroup that defines a structure for the views and / or UI elements contained inside of them.

What are four types of layouts?

Grid View


Linear


Relative


Table

How is a linear layout organised?

Child views / UI elements are arranged in a single horizontal or vertical row.

How is a relative layout organised?

Child views / UI elements are positioned relative to each other and to the parent view.

How is the table layout organised?

Child views / UI elements are arranged into rows & columns. The table will contain as many columns as the row with the most cells. A table can leave cells empty but cannot span columns as they do in HTML.

How is the grid view layout organised?

Child views / UI elements are arranged in a two-dimensional, scrollable grid. The grid items are automatically inserted into the layout using a ListAdapter.

How does the main UI thread work?

The main UI thread handles quick to perform UI related tasks. If the UI thread is tasked with handling something like network access or database queries it will block the user interface. When an operation takes longer than five seconds to complete the user is presented with an ANR dialogue, "application not responding".

What is an Async Task?

Async Tasks provide a structured way to manage work involving background processes. This allows the main UI thread to continue to be used while another task is performed. The async task can report it's progress whilst the UI thread will publish it.

What is the AsyncTask flow?

It is the methods that are stepped through when performing an AsyncTask. They are:


onPreExecute() &


doInBackground (ParamType paramName)




may also call:


publishProgress(Progress values)

How are HTTP requests sent?

Through either:


HttpURLConnection


(less flexible)


or


AndroidHttpClient


(breaks transaction into separate request & response objects)

How are HTTP requests processed?

Using either:


JSON or XML

How is the request for networking permissions written in an application's Android manifest?

<uses-permission


android:name="android.permission.INTERNET" />