Please enable JavaScript.
Coggle requires JavaScript to display documents.
Intent, Broadcast, Alarm - Coggle Diagram
Intent, Broadcast, Alarm
Intents
introduction
a way to talk to other apps
a way to talk to other components within your app
communication protocol
types
explicit
knows app's package
knows components' name
usage
starting activity
sending data
implicit
doesn't know neither
usage
requiring other apps
opening maps, etc
needs
intent-filter
primary info inside intent
component
for
explicit intent
the class that will receive the Intent
action
just like redux
good for switch case on what to do
data
extras
extra data in key/value
usage example
a6e67756ffea99368d67eb99d497aa74
PendingIntent
introduction
read
intents
wraps an
intent
foreign app can use the wrapped
intent
AlarmManager
executes intent
will seems like it is called from within your app