2: Android Flashcards

1
Q

descrbibe the the android OS

A

runs a variant on linux which has been stripped down for mobile devices with a Java VM on top. it has one user, one host

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

define discovery and wiring in the context of Android

A

discovery: what app offers what service
wiring: choosing which component will do the service

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

what are the four component types in android?

A

activity
service
content providers
broadcast receivers

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

what is an activity?

A
an activity corresponds to one screen
e.g mail app might have:
compose, inbox, outbox...
all diff activities
apps move between activities, passing data between them
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how do components communicate in android?

A

the calling component uses an Intent to announce the wish for communication
the called component has an intent filter to receive the Intent which must match the conditions of the filter
note an intent is not for an app, it is for an activity. an app is just a set of components linked by intents

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

how do we deal with these issues?

No provider for an intent
Many possible providers
Component crashes

A

● No provider for an intent
● Don’t offer the option to the user

● Many possible providers
● Ask the user to choose

● Component crashes
● Revert to the calling activity? Fail? Home screen?

● The point is that there is a single user who can
be regarded as being in control

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