LAST - Sheet1 Flashcards

1
Q

Mobile operating system based on Linux

A

Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Originally developed by Android Inc.

A

Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Google purchased Android Inc. in ___

A

2005

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

___ is open and free

A

Android OS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Open Source
Larger Developer and Community Reach
Increased Marketing
Inter App Integration
Reduced Cost of Development
Higher Success Ratio
Rich Development Environment

A

Android

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Android =

A

0.7334999999999999

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Android Versions and their Names

A

Cupcake
Donut
Eclair
Froyo
Gingerbread
Honeycomb
Ice Cream Sandwich
Jellybean
KitKat
Lollipop
Marshmallow
Nougat
Oreo
Pie
Android 10
Android 11
Android 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Both versions are first commercial versions

A

Android 1.0 and 1.1 (Unnamed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Officially released publicly in 2008 and 2008

A

Android 1.0 and 1.1 (Unnamed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The first android commercial version was placed on ____

A

HTC dream device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

These versions were released without codename

A

Android 1.0 and 1.1 (Unnamed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Google Maps
Camera
Gmail, Contacts and Google Synchronization
Web Browser
Wireless supports - WiFi and Bluetooth

A

Android 1.0 (alpha);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Add Save attachment in message
Provides reviews and details when user search business on maps

A

Android 1.1 (beta):

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Released in April 2009.

A

Android 1.5 (CupCake)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The first released codename with official name.

A

Android 1.5 (CupCake)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

It brought features in UI design and update several new features

A

Android 1.5 (CupCake)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

New upload service on Youtube and Picasa like Uploading Videos and Photos
Supporting in MPEG-4, Video recording
Improving Web Browser-Copy and Paste facility

A

Android 1.5 (CupCake)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Released in Sept 2009

A

Android 1.6 (Donut)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

It supports large screen size
Providing Gallery and Camera features
Improve speed in system apps

A

Android 1.6 (Donut)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Released in Oct 2009 and 2.1 version released in Dec 2009.

A

Android 2.0 and 2.1 (Eclair)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Update UI
Support Live Wallpaper
Support Bluetooth 2.1
Improve Google map
Minor API Changes

A

Android 2.0 and 2.1 (Eclair)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Released in May 2010.

A

Android 2.2 (Froyo)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Support Animated GIF
WiFI Support Hotspot functionality
Speed improvements
Upload file support in browser
Support numeric and alphanumeric password

A

Android 2.2 (Froyo)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Released in December 2010

A

Android 2.3 and 2.4 (Gingerbread)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

It was officially announced in Nexus S android phone which is Google co-developed with Samsung

A

Android 2.3 and 2.4 (Gingerbread)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Improve Copy-Paste Facility
Updated UI design
Social Networking Supports
Easy use of keyboard

A

Android 2.3 and 2.4 (Gingerbread)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

was released in February 2011 quickly followed by 3.1 and 3.2 in July and August, 2011.

A

Android 3.0, 3.1, and 3.2 (Honeycomb)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

____ was released in February 2011

A

Android 3.0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Gmail App improvements
Updated 3D UI
Media Sync from SD Card
Google eBooks
Google Talk Video Chat
Support Adobe Flash in Browser
High-performance WiFi Connections and Lock
Chinese handwriting

A

Android 3.0, 3.1, and 3.2 (Honeycomb)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Released in October 2011.

A

Android 4.0 (Ice-Cream Sandwich)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

It was Google’s attempt to synthesize Honeycomb

A

Android 4.0 (Ice-Cream Sandwich)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Improved text input and spelling check
WiFi direct
Photo Decor facility
Improve in keyboard correction
Face Lock
Improve in video recording resolution
Camera performance
Up to 16 tabs in web browser

A

Android 4.0 (Ice-Cream Sandwich)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Released in July 2012

A

Android 4.1, 4.2 and 4.3 (Jelly Bean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

‘Google now’ is the main feature.

A

Android 4.1, 4.2 and 4.3 (Jelly Bean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Voice Search
Smooth UI
Improve camera application
Security enhancement
Voice typing
Multiple user accounts on tablet only
4k resolution support
Supporting Bluetooth Low Energy
Bi-directional text and other language support
Support USB audio
Lock screen improvement
Set the volume of incoming calls and showing message alert
Native emoji support

A

Android 4.1, 4.2 and 4.3 (Jelly Bean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Released in September 2013

A

Android 4.4 (Kitkat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Screen Recording
KitKat adds a feature in ‘Google now’. Its name is ‘OK Google’. “OK Google” allows access google now to the user without touching your mobile phone
GPS Support
Offline music support
UI updates for google map navigation and alarm
Also, introduce Emoji’ to google keyboard

A

Android 4.4 (Kitkat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

KitKat adds a feature in ‘Google now’. Its name is ____. _____allows access google now to the user without touching your mobile phone

A

‘OK Google’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

Released in November 2014.

A

Android 5.0 and 5.1 (Lollipop)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

Support ART(Android RunTime)

A

Android 5.0 and 5.1 (Lollipop)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

Save battery on some device
Improvement in UI
New material design
Bug fixes
Multiple sim card support
High definition voice call

A

Android 5.0 and 5.1 (Lollipop)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Released in May 2015

A

Android 6.0 (Marshmallow)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

Fingerprint authentication
USB Type C support
Save battery - ‘Sleep Mode’
App permission model-OPT (send request for permission)
New Emoji’s

A

Android 6.0 (Marshmallow)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

Released in August 2016.

A

Android 7.0 (Nougat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

It was announced with native split-screen mode and data saver feature.

A

Android 7.0 (Nougat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

Provide multitasking
Providing multi-window mode
Improve in storage manager
Display touch improvement

A

Android 7.0 (Nougat)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

Released in August 2017.

A

Android 8.0 (Oreo)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

Support PIP(Picture-in-Picture)
Multi-display support
Google Play support
Adaptive Icons
Improve notification system

A

Android 8.0 (Oreo)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Released in August 2018

A

Android 9.0 (Pie)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

A “screenshot” button has been added
A new “Lockdown” mode for biometrics
Support for display cutouts
Adaptive Batter prediction
Adaptive brightness modifies screen brightness based on user habits

A

Android 9.0 (Pie)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

Released in September 3 2019.

A

Android 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

Known as “Queen Cake”, internally as Quince Tart

A

Android 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

New permissions to access location in background and to access photo, video, and audio files
Sharing shortcuts, which allow sharing content with a contact directly
Dynamic depth format for photos, which allow changing background blur after taking a photo
New system-wide dark theme/mode

A

Android 10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

Released in September 8, 2020.

A

Android 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

Known as “Red Velvet Cake”

A

Android 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Native Screen Recording
Muting notifications during video
Increase touch sensitivity
Notification History
Auto-revoke app permissions

A

Android 11

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

Released in October 4, 2021.

A

Android 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

Known as “Snow Cone”

A

Android 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

Scrolling Screenshots
AppSearch
Improved Auto-Rotate
Easier WiFi Sharing
One-Handed Mode
Rich Content Insertion
Overview Suggestions
Game Mode APIs

A

Android 12

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

Released in August 15, 2022

A

Android 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

Known as “Tiramisu”

A

Android 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

Improved Security Features
New Reading Mode
Digital Car Keys
Native LE Bluetooth Support
Additional Material You Theme Options
QR Code Scanner Support

A

Android 13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

Released in October 4, 2023

A

Android 14

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

Known as “Upside Down Cake”

A

Android 14

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

Smarter Scaling and Large Fonts
Notification Flashes
Restrictions for Photo and Video Access
Protected Pin
Data Protection
Regional Preferences
Predictive Back Gestures
Health Connect

A

Android 14

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

Released in August 13, 2024.

A

Android 15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

Known as “Vanilla Ice Cream”

A

Android 15

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

SQL
Media
Connectivity
Messaging
Mobile Applications
Multi touch

A

Android Features

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

A software stack of components to support a mobile device needs

A

Android Architecture

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

_______ contains a Linux Kernel, collection of c/c++ libraries which is exposed through an application framework services, runtime and application.

A

Android software stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

Applications
Android Framework
Android Runtime
Platform Libraries
Linux Kernel

A

Android software stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

is the main component in android to provide its operating system functions to mobile.

A

Linux Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

which is responsible for running a mobile application

A

Dalvik Virtual Machine (DVM)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

Prerequisites of Android Studio

A

JDK
Android Studio

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

lets you carry out a wide range of actions, including running your app and launching Android tools

A

toolbar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

helps you navigate through your project and open files for editing. It provides a more compact view of the structure visible in the Project window

A

navigation bar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

is where you create and modify code. Depending on the current file type, the editor can change. For example, when viewing a layout file, the editor displays the Layout Editor

A

editor window

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

runs around the outside of the IDE window and contains the buttons that allow you to expand or collapse individual tool windows

A

tool window bar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

give you access to specific tasks like project management, search, version control, and more. You can expand them and collapse them

A

tool windows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

displays the status of your project and the IDE itself, as well as any warning or messages

A

status bar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

Connect your Android Phone to the computer
Make sure USB Debugging is enabled (you can do this by enabling Developer options first)

A

Run on real Device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
82
Q

Navigate to Device Manager and select Create Device
Select your screen size and kind of phone
Select Android SDK version

A

Run on Emulator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
Q

are the essential building blocks of an Android application.

A

Application Components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
84
Q

Application components are loosely coupled by the application manifest file ___that describes each component of the application and how they interact

A

AndroidManifest.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
85
Q

These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each component of the application and how they interact

A

Application Components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
86
Q

They dictate the UI and handle the user interaction to the smart phone screen

A

Activities

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
87
Q

They handle background processing associated with an application

A

Services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
88
Q

They handle communication between Android OS and applications

A

Broadcast Receivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
89
Q

They handle data and database management issues

A

Content Providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
90
Q

An _____ represents a single screen with a user interface, in-short ____ performs actions on the screen.

A

Activity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
91
Q

An activity is implemented as a subclass of Activity class as follows –

A

public class MainActivity extends Activity{}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
92
Q

is a component that runs in the background to perform long-running operations.

A

service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
93
Q

might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user interaction with an activity.

A

service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
94
Q

A service is implemented as a subclass of Service class as follows –

A

public class MyService extends Service{}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
95
Q

simply respond to broadcast messages from other applications or from the system.

A

Broadcast Receivers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
96
Q

implemented as a subclass of BroadcastReceiver class and each message is broadcaster as an Intent object

A

broadcast receiver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
97
Q

BroadCast Receiver Syntax

A

public class MyReceiver extends Broadcast Receiver{
public void onReceive(context,intent){}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
98
Q

component supplies data from one application to others on request.

A

content providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
99
Q

A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ____ class.

A

ContentResolver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
100
Q

The data may be stored in the file system, the database or somewhere else entirely

A

content providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
101
Q

is implemented as a subclass of ContentProvider class and must implement a standard set of APIs that enable other applications to perform transactions.

A

content providers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
102
Q

represents a portion of user interface in an Activity

A

Fragment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
103
Q

UI elements that are drawn on-screen including buttons, lists forms etc.

A

Views

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
104
Q

view hierarchies that control screen format and appearance of the views

A

Layouts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
105
Q

messages wiring components together

A

Intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
106
Q

external elements, such as strings, constants and drawable pictures

A

Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
107
Q

configuration file for the application

A

Manifest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
108
Q

are the additional files and static content that your code uses, such as bitmaps, layout definitions, user interface strings, animation instructions, and more

A

Resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
109
Q

are always maintained separately in various sub-directories under res/ directory of the project

A

resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
110
Q

Android Resources are always maintained separately in various sub-directories under ___ directory of the project

A

res/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
111
Q

XML files that define Property animations

A

animator/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
112
Q

XML files that define property animations. They are saved in res/anim/ folder and accessed from the R.anim class

A

anim/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
113
Q

XML files that define property animations. They are saved in ___ folder and accessed from the ___ class

A

res/anim/, R.anim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
114
Q

XML files that define Tween animations.

A

anim/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
115
Q

____ can also be saved in this directory, but the animator/directory is preferred for property animations to distinguish between the two types

A

Property animations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
116
Q

XML files that define a state list of colors.

A

color/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
117
Q

XML files that define a state list of colors. They are saved in __ and accessed from the ___ class

A

res/color/, R.color

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
118
Q

images like .png, .jpg, .gif or XML files that are compiled into bitmaps, state lists, shapes, animation drawable.

A

drawable/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
119
Q

images like .png, .jpg, .gif or XML files that are compiled into bitmaps, state lists, shapes, animation drawable. They are saved in __ and accessed from the ___ class

A

res/drawable/, R.drawable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
120
Q

Bitmap files (PNG, .9.png, JPG, or GIF) or XML files that are compiled into the following drawable resource subtypes

A

drawable/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
121
Q

Bitmap files
Nine-patches (re-sizeable bitmaps)
State lists
Shapes
Animation drawables
Other drawables

A

Bitmap files (PNG, .9.png, JPG, or GIF) or XML files that are compiled into the following drawable resource subtypes:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
122
Q

XML files that define a user interface layout.

A

layout/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
123
Q

XML files that define a user interface layout. They are saved in ____ and accessed from the ___class.

A

res/layout/, R.layout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
124
Q

XML files that define application menus, such as an Options Menu, Context Menu, or Sub Menu.

A

menu/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
125
Q

XML files that define application menus, such as an Options Menu, Context Menu, or Sub Menu. They are saved in ___ and accessed from the ___class

A

res/menu/, R.menu

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
126
Q

Arbitrary files to save in their raw form.

A

raw/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
127
Q

Arbitrary files to save in their raw form. You need to call ______ with the resource ID, which is _____ to open such raw files.

A

Resources.openRawResource(), R.raw.filename

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
128
Q

Arbitrary files to save in their raw form. To open these resources with a raw _____, call Resources.openRawResource() with the resource ID, which s R.raw.filename.

A

InputStream

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
129
Q

However, if you need access to the original filenames and file hierarchy, consider saving resources in the ____instead of res/raw/. Files in assets/ aren’t given a resource ID, so you can only read them using ___-

A

asset/ directory, AssetManager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
130
Q

XML files that contain simple values, such as strings, integers, and colors

A

values/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
131
Q

Whereas XML resource files in other res/ subdirectories define a single resource based on the XM filename, files in the values/ directory describe multiple resources

A

values/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
132
Q

For a file in values/ directory, each child of the ____ element defines a single resource. For example, a <string> element creates an R.string resource, and a <color> element creates an R.color resource</color></string>

A

<resources>
</resources>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
133
Q

Because each resource is defined with its own XML element, you can name the file whatever you want and place different resource types in one file.

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
134
Q

arrays.xml for resources arrays

A

Typed arrays

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
135
Q

colors.xml for

A

Color Values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
136
Q

dimens.xml for

A

Dimension Values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
137
Q

strings.xml for

A

String values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
138
Q

styles.xml for

A

Styles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
139
Q

Arbitrary XML files that can be read at runtime by calling Resources.getXML().

A

xml/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
140
Q

xml/ - Arbitrary XML files that can be read at runtime by calling ____.

A

Resources.getXML()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
141
Q

Arbitrary XML files that can be read at runtime by calling Resources.getXML(). Various XML configuration files must be saved here, such as a ____

A

Search configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
142
Q

Font files with extensions such as TTF, OTF, or TTC, or XML files that include a <font-family> element.</font-family>

A

font/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
143
Q

when your Android application is compiled, a R class gets generated, which contains resource IDs for all the resources available in your res/ directory. You can use R class to access that resource using sub-directory and resource name or directly resource ID

A

Accessing Resources in Code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
144
Q

when your Android application is compiled, a _class gets generated, which contains resource IDs for all the resources available in your res/ directory.

A

R

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
145
Q

when your Android application is compiled, a R class gets generated, which contains resource IDs for all the resources available in your ___ directory.

A

res/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
146
Q

You can use ___ to access that resource using sub-directory and resource name or directly resource ID

A

R class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
147
Q

to access
res/drawable/myimage.png and set an ImageView, you will use following cod

A

ImageView imageView = (ImageView) findViewById(R.id.myimageview);
imageView.setImageResource(R.drawable.myimage);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
148
Q

Consider next example where
res/values/strings.xml has following definition –

A

<?xml version=”1.0” encodding=”utf-8”?>

<resources>
<string>Hello, World!</string>
</resources>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
149
Q

you can set the text on a TextView object with ID msg using a resource ID as follows –

A

TextView msgTextView (TextView) findViewById(R.id.msg);
msgTextView.setText(R.string.hello);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
150
Q

Consider a layout
res/layout/activity_main.xml with the following definition –

A

<?xml version=”1.0” encodding=”utf-8”?>

<LinearLayout>

<TextView></TextView>

<button></button>
</LinearLayout>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
151
Q

This application code will load this layout for an Activity, in the onCreate() method as follows –

A

public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
152
Q

Consider the following resource XML
res/values/strings.xml file that includes a color resource and a string resource –
Now you can use these resources in the following layout file to set the text color and text string as follows –

A

public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

<?xml version=”1.0” encodding=”utf-8”?>

<EditText></EditText>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
153
Q

is one screen of the Android app’s user interface

A

Android activity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
154
Q

may contain one or more activities, meaning one or more screens.

A

Android app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
155
Q

tarts by showing the main activity, and from there the app may make it possible to open additional activities

A

Android app

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
156
Q

Activity Life Cycle

A

Created -> Started -> Resumed -> Paused -> Stopped -> Destroyed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
157
Q

Any Android activity goes through a certain ___ during its life inside the Android app

A

life cycle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
158
Q

All activities in your Android apps are represented by an ___

A

activity class.

159
Q

All activities in your Android apps are represented by an activity class. These activity classes are subclasses of _____

A

android.app.Activity.

160
Q

contains a set of methods that corresponds to the life cycle

A

activity class.

161
Q

this is the first callback and called when the activity is first created

A

onCreate()

162
Q

this callback is called when the activity becomes visible to the user

A

onStart()

163
Q

this is called when the user starts interacting with the application

A

onResume()

164
Q

the paused activity does not receive user input and cannot execute any code and called when the current activity is being paused and the previous activity is being resumed

A

onPause()

165
Q

this callback is called when the activity is no longer visible

A

onStop()

166
Q

this callback is called before the activity is destroyed by the system

A

onDestroy()

167
Q

this callback is called when the activity restarts after stopping it

A

onRestart()

168
Q

is a subclass of the Android class android.app.Activity

A

activity

169
Q

An activity is a subclass of the Android class ____

A

android.app.Activity

170
Q

All activities, should be documented on your ___

A

manifest file.

171
Q

All activities, should be documented on your manifest file. To do this, add an ___ element as a child of the ____ element

A

<activity>, <application>
</application></activity>

172
Q

An activity is a subclass of the Android class android.app.Activity

A

import android.app.Activity

173
Q

All activities, should be documented on your manifest file. To do this, add an <activity> element as a child of the <application> element</application></activity>

A

<activity></activity>

174
Q

An activity class loads all the UI component using the XML file available in ____ of the project during the onCreate() callback.

A

res/layout folder

175
Q

An activity class loads all the UI component using the XML file available in res/layout folder of the project during the ____ callback.

A

onCreate()

176
Q

Following statement loads UI components from res/layout/activity_main.xml file:

A

setContentView(R.layout.activity_main);

177
Q

Defines the structure for a user interface in your app, such as an activity.

A

Layouts

178
Q

All elements are built using a hierarchy of ___ and ___ objects

A

View, ViewGroup

179
Q

All elements are built using a hierarchy of View and ViewGroup objects

A

Layouts

180
Q

usually draws something the user can see and interact with

A

View

181
Q

invisible container that defines the layout structure for View and other ViewGroup objects

A

ViewGroup

182
Q

ViewGroup - invisible container that defines the layout structure for View and other ViewGroup objects

A

View, ViewGroup

183
Q

Each layout file must contain exactly ____, which must be a View or ViewGroup object

A

one root element

184
Q

Once you’ve defined the root element, you can add additional layout objects or widgets as ____

A

child elements

185
Q

objects are usually called “widgets” cand can be one of many subclasses, such as Button or TextView

A

View

186
Q

objects are usually called “layouts” can be one of many types that provide a different layout structure, such as LinearLayout or ConstraintLayout

A

ViewGroup

187
Q

Declare UI Elements in XML
Instantiate Layout Elements at Runtime

A

View and ViewGroup can be declared in two ways:

188
Q

Declare UI elements in XML

A

create layout in xml ->

load the xml from activity:

protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

189
Q

Instantiate Layout Elements at Runtime

A

public class MainActivity extends AppCompatActivity{

@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
TextView textView1 = new TextView(this);
textView1.setText(“Name:”);
EditText editText1 = new EditText(this);
editText1.setText(“Enter Name”);
Button button1 = new Button(this);
button1.setText(“Add Name”);
LinearLayout linearLayout = newLinearLayout(this);
linearLayout.addView(textView1);
linearLayout.addView(editText1);
linearLayout.addView(button1);
setContentView(linearLayout);
}
}

190
Q

defines the architecture for the UI in an Activity or a component of a UI

A

layout resource

191
Q

Layout Resource file location:

A

res/layout/filename.xml

192
Q

file location:
res/layout/filename.xml
The filename will be used as the ____

A

resource ID

193
Q

Resource pointer to a view (or subclass) resource

A

Layout Resource compiled resource datatype:

194
Q

In Java: R.layout.filename
In XML: @[package:]layout/filename

A

Layout Resource resource reference:

195
Q

Layout Resource - syntax

A

<?xml version=”1.0” encodding=”utf-8”?>
<ViewGroup
xmlns:android=”https://schemas blah
android:id=”@[+][package:]id/resource_name”
android:layout_height=[“dimension” | “match_parent” | “wrap_content”]
android:layout_width=[“dimension” | “match_parent” | “wrap_content”]
[ViewGroup-specific attributes] >
<View
android:id=”@[+][package:]id/resource_name”
android:layout_height=[“dimension” | “match_parent” | “wrap_content”]
android:layout_width=[“dimension” | “match_parent” | “wrap_content”]
[View-specific attributes] >
<requestFocus></requestFocus>
</View>
<ViewGroup>
<View></View>
</ViewGroup>
<include></include>
</ViewGroup>

196
Q

a container for other View elements

A

<ViewGroup>
</ViewGroup>

197
Q

LinearLayout, Relative Layout, and FrameLayout

A

<ViewGroup>
</ViewGroup>

198
Q

Do not assume that any derivation from ViewGroup will accept nested Views.

A

<ViewGroup>
</ViewGroup>

199
Q

Some ViewGroups are implementations of the _____ , which determines its children only from an Adapter

A

AdapterView class

200
Q

android:id
android:layout_height
android:layout_width

A

<ViewGroup> attributes
</ViewGroup>

201
Q

an individual UI component, generally referred to as a “widget”

A

<View>
</View>

202
Q

Different kinds of ____ include TextView, Button, and CheckBox

A

View objects

203
Q

android:id
android:layout_height
android:layout_width

A

<View> attributes
</View>

204
Q

More attributes are supported by the ___, and many more are supported by each implementation of View

A

View base class

205
Q

Resource ID. A unique resource name for the element, which you can use to obtain a reference to the View or ViewGroup from your application

A

android:id

206
Q

For ID value, use syntax form: ____

A

“@+id/name”.

207
Q

The ___ symbol, indicates that this is a new resource ID and the aapt tool will create a new resource integer in the R.java.class, if it doesn’t already exist

A

plus

208
Q

The plus symbol, +, indicates that this is a new resource ID and the ___ tool will create a new resource integer in the R.java.class, if it doesn’t already exist

A

aapt

209
Q

Dimension or keyword. Required.

A

android:layout_height and android:layout_width

210
Q

can be expressed using any of the dimension units supported by Android (px, dp, sp, pt, in, mm) or

A

height and width

211
Q

sets the dimension to match that of a parent element.

A

match_parent

212
Q

match_parent - sets the dimension to match that of a parent element. Added in ___ to deprecate fill_parent

A

API Level 8

213
Q

sets the dimension only to the size required to fit the content of this element

A

wrap_content

214
Q

you can create your own custom View and ViewGroup elements and apply them to your layout the same as a standard layout element. You can also specify the attributes supported in the XML element

A

Custom View elements

215
Q

Loading View

Define a view/widget in the layout file and assign it a unique ID:

Then create an instance of the view object and capture it from the layout (typically in the onCreate() method)

A

<button></button>

Button myButton = (Button) findViewById(R.id.my_button);

216
Q

used to uniquely identify the view and ViewGroup

A

android:id

217
Q

used to define the width for View and ViewGroup elements in layout

A

android:layout_width

218
Q

used to define the height for View and ViewGroup elements in layout

A

android:layout_height

219
Q

used to define the extra space in left slide for View and ViewGroup elements in layout

A

android:layout_marginLeft

220
Q

used to define the extra space in right side for View and ViewGroup elements in layout

A

android:layout_marginRight

221
Q

used to define the extra space on top for View and ViewGroup elements in layout

A

android:layout_marginTop

222
Q

used to define the extra space in bottom side for View and ViewGroup elements in layout

A

android:layout_marginBottom

223
Q

used to define the left slide padding for View and ViewGroup elements in layout files

A

android:paddingLeft

224
Q

used to define the right side padding for View and ViewGroup elements in layout files

A

android:paddingRigh

225
Q

used to define padding for View and ViewGroup elements in layout files on top side

A

android:paddingTop

226
Q

used to define the bottom side padding for View and ViewGroup elements in layout files

A

android:paddingBottom

227
Q

used to define how child Views are positioned

A

android:layout_gravity

228
Q

Linear Layout
Relative Layout
Frame Layout
Table Layout
Web View
List View
Grid View

A

Layout Types

229
Q

is a ViewGroup subclass which s used to render all child View instances one by one either in Horizontal direction or Vertical direction based on the orientation property

A

LinearLayout

230
Q

In android, we can specify the linear layout orientation using ______ attribute

A

android:orientation attribute

231
Q

which is used to specify the position of child View instances relative to each other (Child A to the left of Child B) or relative to the parent (Aligned to the top of parent)

A

Relative Layout

232
Q

very useful to design user interface because by using ___ we can eliminate the nested view groups and keep our layout hierarchy flat, which improves performance of application

A

Relative Layout

233
Q

is a ViewGroup subclass which is used to specify the position of View instances

A

Frame Layout

234
Q

It contains on the top of each other to display only single View inside the ____

A

Frame Layout

235
Q

designed to block out an area on the screen to display a single item

A

Frame Layout

236
Q

It acts as a placeholder on the screen and it is used to hold a single child view

A

Frame Layout

237
Q

The child views are added in a stack and the most recently added child will show on the top.

A

FrameLayout

238
Q

The child views are added in a stack and the most recently added child will show on the top. We can add multiple children views to FrameLayout and control their position by using ____ in FrameLayout

A

gravity attributes

239
Q

is a ViewGroup subclass which is used to display the child View elements in rows and columns

A

Table Layout

240
Q

It position its children elements into rows and columns and it won’t display any border lines for rows, columns, or cells

A

Table Layout

241
Q

in android will work same as HTML table and table will have as many columns as the row with the most cells.

A

Table Layout

242
Q

can be explained as <table> and TableRow is like <tr> element

A

Table Layout

243
Q

is an extension of View class and it is used to show the static HTML web pages content or remote web pages content with URl in android applications as part of our activity layout

A

WebView Layout

244
Q

will act as an embedded browser to include the web pages content in our activity layout and it won’t contain any features of normal browser, such as address bar, navigation controls, etc.

A

WebView Layout

245
Q

is a ViewGroup which is used to display the list of scrollable of items in multiple rows and the list items are automatically inserted to the list using an adapter

A

ListView Layout

246
Q

ListView is a ViewGroup which is used to display the list of scrollable of items in multiple rows and the list items are automatically inserted to the list using an ____

A

adapter

247
Q

acts as an intermediate between the data sources and adapter views such as ListView, Gridview to fill the data into adapter views.

A

adapter

248
Q

will hold the data and iterates through a n items in data set and generate views for each item in the list

A

adapter

249
Q

expects an Array or List as input

A

ArrayAdapter

250
Q

accepts an instance of cursor as an input

A

CursorAdapter

251
Q

accepts a static data defined in the resources

A

SimpleAdapter

252
Q

generic implementation for all three adapter types and it can be used for ListView, GridView, orSpinners based on our requirements

A

BaseAdapter

253
Q

is a ViewGroup which is used to display items in a two dimensional, scrollable grid and grid items are automatically inserted to the gridview layout using a list adapter

A

GridView Layout

254
Q

are the interactive components in your app’s user interface.

A

Input controls

255
Q

Android provides a wide variety of controls you can use in you UI, such as buttons, text fields, seek bars, check box, zoom buttons, toggle buttons, and many more.

A

Input controls

256
Q

A ___ is an object that draws something on the screen that the user can interact with and a _____ is an object that holds other ____ objects in order to define the layout of the user interface

A

view, ViewGroup

257
Q

this control is used to display text ot the user

A

TextView

258
Q

predefined subclass of TextView that includes rich editing capabilities

A

EditText

259
Q

a view that is similar to EditText, except that it shows a list of completion suggestions

A

AutoCompleteTextView

260
Q

a push-button that can be pressed, or clicked, by the user to perform an action

A

ButtonA

261
Q

an AbsoluteLayout which enables you to specify the exact location of its children. This shows a button with an image (instead of text) that can be pressed or clicked by the user

A

ImageButtonAn

262
Q

n on/off switch that can be toggled by the user. You should use check box when presenting users with a group of selectable options that are not mutually exclusive

A

CheckBox

263
Q

an on/off with a light indicator

A

ToggleButton

264
Q

has two states: either checked or unchecked.

A

RadioButton

265
Q

is used to group together one or more RadioButtons

A

RadioGroup

266
Q

provides visual feedback about some ongoing tasks, such as when you are performing a task in the background

A

ProgressBar

267
Q

a drop-down list that allows users to select one value from a set

A

Spinner

268
Q

enables users to select a time of the day, in either 24-hour mode or AM/PM mode

A

TimePicker

269
Q

enables users to select a date of the day

A

DatePicker

270
Q

may have a unique ID assigned to it which will identity the View uniquely within the tree

A

View objects

271
Q

is an interface in the View class that contains a single callback method.

A

event listener

272
Q

methods will be called by the Android framework when the VIew to which the listener has been registered is triggered by user interaction with the item in the UI.

A

Event Handling

273
Q

This is called when the user either clicks or touches or focuses upon any widget like button, text, image etc.

A

onClick() OnClickListener()

274
Q

This is called when the user either click or touches or focuses upon any widget like button, text, image etc. for one or more seconds.

A

onLongClick()
OnLongClickListener()

275
Q

This is called when the widget looses its focus ie. user goes away from the view item.

A

OnFocusChange()
OnFocusChangeListener()

276
Q

This is called when the user is focused on the item and presses or releases a hardware key on the device.

A

onKey()
OnFocusChangeListener()

277
Q

This is called when the user either clicks or touches or focuses upon any widget like button, text, image tc for one or more seconds.

A

onTouch()
OnTouchListener()

278
Q

This is called when the user presses the key, releases the key, or any move gesture on the screen

A

onFocusChange()
OnFocusChangeListener()

279
Q

This is called when the user selects a menu item.

A

onMenuItemClick()
OnMenuItemClickListener()

280
Q

This is called when the context menu is being built (as the result of a sustained “long click)

A

onCreateContextMenu()
onCreateContextMenuItemListener()

281
Q

Implement the nested interface in your Activity or define it as an anonymous class

A

Event Implementation

282
Q

This will avoid the extra class load and object allocation

A

OnClickListene

283
Q

is an abstract description of an operation to be performed.

A

Android Intent

284
Q

can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service

A

Android Intent

285
Q

is a passive data structure holding an abstract description of an operation to be performed

A

Intent object

286
Q

Explicit
Implicit

A

There are following two types of intents supported by Android:

287
Q

going to be connected internal world of application, suppose if you want to connect one activity to another activity,

A

Explicit intent

288
Q

do not name a target and the field for the component name is left blank.

A

Implicit Intents

289
Q

are often used to activate components in other applications

A

Implicit intents

290
Q

The target component which receives the intent can use the ____ method to get the extra data sent by the source component

A

getExtras()

291
Q

We can start adding data into the Intent object, we use the method defined in the Intent class ___or ____ to store certain data as a key value pair or Bundle data object.

A

putExtra(), putExtras()

292
Q

We can start adding data into the Intent object, we use the method defined in the Intent class putExtra() or putExtras() to store certain data as a key value pair or Bundle data object. These key-value pairs are known as ___ in the sense we are talking about Intents

A

Extras

293
Q

To retrieve the data, we use the method ____ on the NextActivity from the intent

A

getExtra()

294
Q

is a mapping from String keys to various parcelable values

A

Bundle

295
Q

We can store any number of key-value pairs in a ___ object and simply pass this object through the intent

A

Bundle

296
Q

We can use the _____ in the target activity/class to get the attached bundle and extract the data stored in it

A

Intent.getExtras()

297
Q

We can also pass Java class objects through ____, maybe an ArrayList, HashMap, or any type of object, we can serialize in one end get it at the other end.

A

bundles

298
Q

To put an object to a bundle, we use ____

A

putSerializable(“KEY”,OBJECT)

299
Q

To retrieve this object, in the target activity, we simply get the serializable and assign it to an object of same type
by typecasting the return value of ____

A

getSerializable(“KEY”, DEFAULT)

300
Q

simple feedback about an operation in a small popup.

A

toast

301
Q

It only fills the amount of space required for the message and the current activity remains visible and interactive.

A

toast

302
Q

automatically disappear after a timeout

A

toast

303
Q

First, instantiate a Toast object with one of the ___ methods.

A

makeText()

304
Q

First, instantiate a Toast object with one of the makeText() methods.

This method takes three parameters: ____

A

the application Context, the text message, and the duration for the toast.

305
Q

You can display the toast notification with ___

A

show()

306
Q

You can also chain your methods and avoid holding on to the Toast object

A

t

307
Q

appears near the bottom of the screen, centered horizontally.

A

standard toast notification

308
Q

A standard toast notification appears near the bottom of the screen, centered horizontally.

You can change this position with the ____ method.

A

setGravity(int, int, int)

309
Q

setGravity(int, int, int) accepts three parameters:

A

a Gravity constant, an x-position offset, and a y-position offset.

310
Q

You can change this position with the setGravity(int, int, int) method. This accepts three parameters: a Gravity constant, an x-position offset, and a y-position offset.

If you want to nudge the position to the right, increase the value of the ____ parameter. To nudge it down, increase the value of the ____ parameter

A

second, last

311
Q

is a message you can display to the user outside of your application’s normal UI.

A

notification

312
Q

When you tell the system to issue a notification, it first appears as an icon in the _____

A

notification area.

313
Q

To see the details of the notification, the user opens the ____

A

notification drawer.

314
Q

Both the notification area and the notification drawer are _____ that the user can view at any time

A

system-controlled areas

315
Q

____ appear to users in different locations and formats, such as an icon in the status bar, a more details entry in the notification drawer, as a badge on the app’s icon, and on paired wearables automatically

A

Notifications

316
Q

Beginning with Android 5.0, notifications can briefly appear in a floating window called a ____

A

heads-ups notification.

317
Q

behavior is normally for important notifications that the user should know about immediately, and it appears only if the device is unlocked

A

heads-ups notification.

318
Q

appears the moment your app issues the notification and it disappears after a moment, but remains visible in the notification drawer as usual.

A

heads-ups notification.

319
Q

The user’s activity is in fullscreen mode (the app uses fullScreenIntent)
The notification has high priority and uses ringtone or vibrations on devices running on Android 7.1 (API level 25) and lower
The notification channel has high importance on devices running Android 8.09 (API level 26) and higher

A

Example conditions that might trigger heads-up notifications include the following:

320
Q

In supported launchers on devices running Android 8.0 (API level 26) and higher, app icons indicate new notifications with a _____ on the corresponding app launcher icon.

A

colored “badge” (also known as a “notification dot”)

321
Q

Users can ____ on an app icon to see the notifications for that app.

A

long-press

322
Q

The _____ is determined by system templates – your app simply defines the contents for each portion of the template. Some details of the notification appear only in the expanded view

A

design of a notification

323
Q

Small icon: This is required and set with ___

A

setSmallIcon()

324
Q

App name: This is ____

A

provided by the system

325
Q

Time stamp: This is provided by the system but you can override with _____ or hide it with ____

A

setWhen() or hide it with setShowWhen(false).

326
Q

Large icon: This is optional(usually used only for contact photos, do not use it for your app icon) and set with ____

A

setLargeIcon()

327
Q

Title: This is optional and set with ____

A

setContentTitle()

328
Q

Text: This is optional and set with ____

A

setContentText()

329
Q

Although most projects created with Android Studio include the necessary dependencies to use ____

A

NotificationCompat,

330
Q

This is the only user-visible content that is required

A

A small icon, set by setSmallIcon().

331
Q

On notifications, to get started, you need to set the notification’s content and channel using a ____ object.

A

NotificationCompat.Builder

332
Q

The body text, set by ___

A

setContentTitle()

333
Q

The notification priority, set by ____

A

setPriority()

334
Q

The ___ determines how intrusive the notification should be on Android 7.1 and lower. (For Android 8.0 and higher, you must instead set the channel importance)

A

priority

335
Q

By default, the notification’s text content is truncated to fit one line.

A

t

336
Q

If you want your notification to be longer, you can enable an expandable notification by adding a style template with ___

A

setStyle()

337
Q

Before you can deliver the notification on Android 8.0 and higher, you must register your app’s notification channel with the system by passing an instance of _______

A

NotificationChannel to createNotificationChannel()

338
Q

Every notification should respond to a tap, usually to open an activity in your app that corresponds to the notification. To do so, you must specify a content intent defined with a ____

A

PendingIntent object and pass it to setContentIntent()

339
Q

Notice that the NotificationChannel constructor requires an importance, using one of the constants from the NotificationManager class. This parameter determines how to interrupt the user for any notification that belongs to this channel - though you must also set the priority with ____ to support Android 7.1 and lower

A

setPriority()

340
Q

The ___ method shown earlier helps preserve the user’s expected navigation experience after they open your app via the notification.

A

setFlags()

341
Q

An activity that exists exclusively for responses to the notification. There’s no reason the user would navigate to this activity during normal app use, so the activity starts a new task instead of being added to your app’s existing ____.

A

task and back stack

342
Q

An activity that exists in your app’s regular app flow. In this case, starting the activity should create a back stack so that the user’s expectations for the _____ is preserved

A

Back and Up buttons

343
Q

To make the notification appear, call ____, passing it a unique ID for the notification and the result of NotificationCompat.Builder.build().

A

NotificationManagerCompat.notify()

344
Q

Beginning with Android 8.1 (API level 27), apps cannot make a notification ____. If your app posts multiple notifications in one second, they all appear as expected, but only the first notification per second makes a sound

A

sound more than once per second

345
Q

Remember to ____ that you pass to NotificationManagerCompat.notify() because you’ll need it later if you want to update or remove the notification

A

save the notification ID

346
Q

is an opensource SQL database that stores data to a text file on a device.

A

SQLite

347
Q

Android comes in with built in __ database implementation

A

SQLite

348
Q

supports all the relational database features.

A

SQLite

349
Q

a formal declaration of how the database is organized.

A

schema:

350
Q

is reflected in the SQL statements that you use to create your database

A

schema:

351
Q

You may find it helpful to create a ____, known as a contract class, which explicitly specifies the layout of your schema in a systematic and self-documenting way

A

companion class

352
Q

is a container for constants that define names for URls, tables, and columns.

A

contract class

353
Q

allows you to use the same constants across all the other classes in the same package.

A

contract class

354
Q

This lets you change a column name in one place and have it propagate throughout your code.

A

contract class

355
Q

A good way to organize a contract class is to put definitions that are global to your whole database in the ___ of the class. Then create an inner class for each table. Each inner class enumerates the corresponding table’s columns.

A

root level

356
Q

By implementing the ____ interface, your inner class can inherit a primary key field called ___ that some Android classes such as CursorAdapter expect it to have. It’s not required, but this can help your database work harmoniously with the Android framework

A

BaseColumns, _ID

357
Q

contains a useful set of APIs for managing your database.

A

SQLiteOpenhelper class

358
Q

When you use this class to obtain references to your database, the system performs the potentially long-running operations of creating and updating the database only when needed and not during app startup. All you need to do is call ___

A

getWriteableDatabase() or getReadableDatabase().

359
Q

To access your database, instantiate your subclass of ____:

A

SQLiteOpenHelper

360
Q

Insert data into the database by passing a ContentValues object to the __ method:

A

insert()

361
Q

To read from a database, use the __ method, passing it your selection criteria and desired columns.

A

query()

362
Q

stands for JavaScript Object Notation

A

JSON

363
Q

JSON stands for

A

JavaScript Object Notation

364
Q

is a lightweight format for storing and transporting data

A

JSON

365
Q

is often used when data is sent from a server to a web page

A

JSON

366
Q

is “self-describing” and easy to understand

A

JSON

367
Q

Data is in name/value pairs
Data is separated by commas
Curly braces hold objects
Square brackets hold arrays

A

JSON Syntax Rules

368
Q

is written as name/value pairs, just like JavaScript object properties. A name/value pair consists of a field name (in double quotes), followed by a colon, followed by a value:

A

JSON Data - A Name and a Value

369
Q

are written inside curly braces. Just like in JavaScript, objects can contain multiple name/value pairs:

A

JSON Objects

370
Q

are written inside square brackets. Just like in JavaScript, an array can contain objects:

A

JSON Arrays

371
Q

Android provides four different classes to manipulate JSON data. These classes are ____

A

JSONArray, JSONObject, JSONStringer, and JSONTokenizer

372
Q

In a JSON file, square bracket ( [ ) represents a

A

JSON Arrays

373
Q

In a JSON file, curly bracket ( { ) represents a

A

JSON object

374
Q

A JSON object contains a key that is just a string. Pairs of key/value make up a JSON object

A

Key

375
Q

each key has a value that could be string, integer, or double e.t.c

A

Value

376
Q

this method just Returns the value but in the form of Object type

A

get(String name

377
Q

this method returns the boolean value specified by the key

A

getBoolean(String name)

378
Q

this method returns the double value specified by the key

A

getDouble(String name)

379
Q

this method returns the integer value specified by the key

A

getInt(String name)

380
Q

this method returns the long value specified by the key

A

getLong(String name)

381
Q

this method returns the number of name/value mappings in this object

A

length()

382
Q

this method returns an array containing the string names in this object

A

names()

383
Q

Modern, trending programming language that was released in 2016 by JetBrains

A

Kotlin

384
Q

Compatible with Java
Works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
Concise and safe
Easy to learn, especially if you already know Java
Free to use
Big community/support

A

Kotlin

385
Q

Mobile applications (specially Android apps)
Web development
Server side applications
Data Science

A

Uses of Kotlin

386
Q

keyword is used to declare a function

A

fun

387
Q

function is needed to execute a program

A

main()

388
Q

In Kotlin, code statements do not have to ___

A

end with a semicolon (;)

389
Q

Single line comments ->

A

//

390
Q

Multi-line comments ->

A

/* */

391
Q

keyword can create a variable whose reference will be immutable (which cannot be modified after its initialization).

A

val

392
Q

keyword lets you create a variable whose reference will be mutable (which can be modified after its initialization).

A

var

393
Q

Kotlin ___ require you to mention the type of a variable when declaring it (thanks to type inference)

A

does not

394
Q

kotlin syntaxes

A

val time = 20
val greeting = if (time < 18){
“Good day.”
} else {
{Good evening.”
}
println(greeting)

val day = 4
val result = when (day){
1-> “Monday”
2-> “Tuesday”
else-> “hell day”
}
println(result)

val nums = arrayOf(1, 5, 10, 15, 20)
for (x in nums){
println(x)
}

for (nums in 5..15){
println(nums)
}

class Car{
var brand =””
var model = “”
var year = 0
}

valr c1 = Car()
c1.brand = “Ford”
c1.model = “Mustang”
c1.year = 1969

cass Car(var brand: String, var model: String, var year: Int)

fun main(){
val c1 = Car(“Ford”, “Musting”, 1969)
}

fun speed(maxSpeed: Int){
print ln(“Max speed is: “ = maxSpeed)
}
}