Mobile and Ubiquitous Computing Flashcards
What are the five layers in Android Platform Architecture from bottom to top?
Linux Kernel
Hardware abstraction layer
Native C/C++ libraries & Android Runtime
Java API framework
System apps
What does the linux kernel contain?
Hardware drivers, security, process and memory management,
File and Network I/O,
Power Management, Binder (Inter-Process Communication)
What does the hardware abstraction layer do?
Provides standard interfaces that expose device hardware capabilities to the Java API framework, bridging the gap between the linux kernel and hardware.
What are the native C/C++ Libraries?
Pre-compiled libraries optimized for performance and used for low-level system operations. Includes Webkit (Browser engine), Media Framework (Video/Audio), OpenGL (Graphics Engine), SQLite (Relational Database engine).
What is Android Runtime?
Android Runtime is an application runtime environment used by the Android OS. Contains core libraries such as Basic Java Classes, App Lifecycle, Internet/Web Services and Unit Testing. Java Code is converted to Java bytecode, which is converted to DEX bytecode, which is the input to ART.
What is the Java API Framework?
A collection of Java classes and interfaces that define the functionality available to Android applications.
What are five features of the the Java API Frameworks and what do they do?
View System - Builds an application’s UI.
Content Provider - Enables applications to access data from other applications.
Resource Manager - Provides access to non-code resources such as graphics.
Notification Manager - Enables all applications to display customer alerts in the status bar.
Activity Manager - Manages the lifecycle of apps and provides a common navigation backstack.
What is application part of the android platform architecture?
A set of core apps that come pre installed with android such as an email client, maps and a browser.
What is an activity?
An activity provides the window in which the app draws its UI. It is the entry point for an app’s interaction with the user. One activity implements one screen and most apps have several activities. Each activity must be registered in the manifest, and as a subclass of the base Activity class.
What is a service?
A service runs in the background and performs long running operations. It allows different processes to share data and request operations.
What are Broadcast Receivers?
Broadcast Receivers are a component of the android system that allow apps to listen and respond to an event. For example system broadcasts and customized broadcasts.
What are Content Providers?
A way for an app to access data and to share data with other apps. Provides an interface between an app and its data storage.
What is the android manifest?
The Android Manifest. is an XML file that serves as a blueprint for the Android application. It provides essential information about the app to the Android system, such as its package name, version, permissions, components, and configuration details.
What happens when an activity is launched?
It goes to onCreate()
What happens after onCreate()?
onStart()
What happens after onStart()?
onResume()
What happens after onResume()?
The activity runs
What happens on onPause()?
Either the App Process is killed, it resumes with onResume(), or it goes to onStop()
What happens on onStop()?
Either the App Process is killed, it restarts with onRestart(), or it it goes on to onDestroy()
What happens on onDestroy()?
The activity is shut down
How is an activity restarted after the App Process is killed?
onCreate()
What is onCreate()?
Called when activity is created. Initializes the activity and carries out the functions super.onCreate(), set content view, retain references to views, configure views.
What is onStart()?
Called when the activity is about to become visible. Typically starts up visible only behaviours and loads persistent app state.
What is onResume()?
Called when the activity is visible and about to start interacting, will usually start foreground only behaviors.