Flashcards
Untitled
Cards in this deck (41)
- 1What are Android Components?Services
Activities
Broadcast receivers
Content providers - 2What is an activity?single screen that represents GUI
- 3What is a service?Service is an application component that facilitates an application to run in the background
- 4What is a Bundle?Bundles are used to pass the required data between various Android activities
- 5What is an adapter?acts as a bridge between an AdapterView and the underlying data
- 6What is AAPTAndroid Asset Packaging Tool - gives the ability to developers to view, create, and update ZIP-compatible archives
- 7What is ADBAndroid Debug Bridge - gives the power for developers to execute remote shell commands to run applications on an emulator
- 8DDMS(Dalvik Debug Monitor Server) is what?debugging tools:
Port forwarding services.
Thread and heap information.
Logcat.
Screen capture on the device.
Network traffic tracking.
Incoming call and SMS spoofing.
Location data spoofing - 9AIDL(Android Interface Definition Language)?The process involves dividing an object into primitives that are understood by the Android operating system
- 10What is the life cycle of Android activity?OnCreate()
OnStart()
OnResume()
OnPause()
OnStop()
OnDestroy()
OnRestart() - 11Sensors in Android?Position Sensor
Motion Sensor
Environmental Sensor - 12Android Dialog boxesAlert Dialog
DatePickerDialog
TimePickerDialog
ProgressDialog - 13What is AndroidManifest?Providing a unique name to the java package.
Describing various components of the application such as activity, services, and many more.
Defining the classes which will implement these components. - 14What is an intent?Implicit Intent- Used to invoke the system components.
Explicit Intent- Used to invoke the activity class. - 15difference between class, file and activity?Class is a compiled form of a .java file
file is a block of arbitrary information or resources
Activity is a single screen that represents GUI - 16What is a Toast?Toast is a message that pops up on the screen
- 17What is context?Activity context:
This activity context is attached to the lifecycle of an activity.
Application context:
This application context is attached to the lifecycle of an application. - 18What is ANR in Android?Application is Not Responding
When there is no response to an input event even after 5 seconds.
When a broadcast receiver has not completed its execution within 10 seconds. - 19Launch modes?Standard:
SingleTop
SingleTask
SingleInstance - 20What are containers?LinearLayout, RelativeLayout, FrameLayout, AbsoluteLayout, GridLayout, and TableLayout
- 21What are broadcast receivers? How is it implemented?broadcast receiver is a mechanism used for listening to system-level events like listening for incoming calls, SMS, etc
implemented as a subclass of BroadcastReceiver - 22What is the difference between Serializable and Parcelable?Serializable is a standard Java interface
java will automatically serialize it.
leads to plenty of garbage collection and poor performance
during the process and many additional objects are created
Parcelable is an Android-specific interface. In this approach, you implement the serialization yourself - 23What database is used in Android?SQLite is the open-source relational database used in Android.
- 24What are the differences between Service and Thread?Service is an application component that facilitates an application to run in the background in order to perform long-running operations without user interaction
A Thread is a concurrent unit of execution - 25What is the content provider?it can be used to share the data between different applications
manages access to a central repository of data
must implement a set of APIs that will enable other applications to perform transactions - 26What is the difference between compileSdkVersion and targetSdkVersionThe compileSdkVersion is the version of API the application is compiled against
The targetSdkVersion indicates that you have tested your app on (presumably up to and including) the version you specify. - 27What is JobScheduler?The JobSchedular API is used for scheduling different types of jobs against the framework that will be executed in your app’s own process
- 28What is Gradlea build system.
used to automate building, testing, deployment, etc - 29What’s Fragment in androidActivity that represents a portion of the User Interface
3 Types
Single Fragment
List Fragment
Fragment Transaction - 30What’s RecyclerView in AndroidRecyclerView is a ViewGroup added to the Android Studio as a successor of the GridView and ListVie
- 31RecyclerView - How it worksrecycling the views which are out of the visibility of the user
- 32hy do we need to call setContentView() in onCreate()The reason for doingso is that the activity life cycle onCreate() method is called only once
- 33What is Kotlin Coroutine on Android?sort of tasks that the actual threads can execute
new style of concurrency that can be used on Android to simplify async code - 34What’s the Android jetpacksoftware components, libraries, tools, and guidance to help in developing
Foundation Components
Architecture Components
Behavior Components
UI Components - 35Foundation Components entails?AppCompat: RecyclerView, GridLayout, CardView
Android KTX: library includes a set of Kotlin extensions that are designed to write concise code
Test: Espresso & AndroidJUnitRunner - 36Architecture Components entails?Data Binding: Provide the facility to bind the application data with the XML
Lifecycles: This library manages the activity and fragment lifecycle
LiveData: Notify the View and automatically updates the UI
Navigation: Contains all required resources for in-app navigation
ViewModel: Facilitates the management of data related to UI. re-constructs the Activity or Fragment during any configuration change - 37What’s Jetpack Compose?Jetpack Compose is a modern UI toolkit.
Declarative
Compatible
Increase development speed
Concise and Idiomatic Kotlin
Easy to maintain
Written in Kotlin - 38How to Improve RecyclerView Scrolling PerformanceSet a specific width and height to ImageView in RecyclerView items
Avoid using NestedView
Use the setHasFixedsize method - 39What’s Retrofit in Android?type-safe REST client
Retrofit uses OkHttp
To serialize JSON we require a converter to change it into Gson first - 40Describe MVVMModel: This layer is responsible for the abstraction of the data sources.
View: The purpose of this layer is to inform the ViewModel about the user’s action.
ViewModel: It exposes those data streams which are relevant to the View - 41—
Information
- Description
- Flashcards on Untitled, created by Michael Gneuschev on 09/12/2023.
- Created by
- Michael Gneuschev
- Views
- 1
- Rating