androids Flashcards

1
Q

what is the linux kernel used for

A

core OS services, multi threading, memory management

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

what libary does android runtime use

A

Java libary

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

How do android apps run their process

A

they use the dalvik virtual machine that executes files in the dalvik executable (.dex). Optimised for low memory footprint

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

Library use:C/C++

A

exposed through android application framework

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

Library use:System C

A

tuned for imbedded linux based devices

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

Library use:LibWebCore

A

Web browser engine which powers android browser and embedded web view

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

Library use:3d libraries

A

hardware 3d acceleration

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

What is application framework and what is it used for

A

Provides access to device hardware, location information, background services(alarms etc). Designed for component reuse and interplay between apps

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

Views?

A

used to build apps, eg lists grids text boxes, buttons

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

content providers

A

enable apps to interchange info between each other

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

resource manager

A

provides access to non code resources such as localised strings , images and layout files

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

activity manager

A

manages app lifecycle and navigation

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

how are applications bundled

A

in .apk files which are used to distribute and install apps on mobile devices

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

Activities

A

Represents a single screen with user interfance, in short it performs activities on the screen

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

what are the states of an activity after onCreate()

A

onStart() and then onResume()

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

what happens after a new activity comes after an activity is running

A

the original activity goes into onPause() state and then goes back to onResume() or onStop

17
Q

what can an activity do in the onStop() state

A

it can be killed and go to onCreate() if apps need memory, it can go to onRestart() and then onStart() if user navigates to that activity or can be destroyed through the onDestroy() state

18
Q

Services:

A

run in the background and support long-running operations like downloading media or remote processes like email client

19
Q

broadcast receivers

A

listen for and respond to events, like messaging app

20
Q

content providers

A

supplies data from one application to others on request

21
Q

True or false: manifests, java, res and gradle scripts are part of an app structure

A

True

22
Q

what does the Res contain

A

the XML file which contains the app layout

23
Q

what does the manifests contain

A

the manifest file, vital for declaring the app’s components, permissions and other core configs

24
Q

what is an intent

A

description of operation to be performed. It is used to request an action from another app component

24
Q

whats the difference between an explicit and implicit intent

A

explicit is an activity in your own application, implicit is when you ask the system to find a suitable activity

24
Q

what 3 parameters do android toasts take

A

first method needs a Context object which is obtained by calling getApplicationContext(). second is the text in the toast, third is the length the toast should be displayed