Mapa mental
Intent
Conteúdo do mapa
Intent
Activates 3 type of comps
- Activities
- startActivity()
- startActivityForReslut()
- onActivittyResult()
- startActivityForReslut()
- startActivity()
- Services
- startService()
- bindService()
- BrodcastRecievers
- sendBroadcast()
- sendOrderedBroadcast()
- sendStickyBroadcast()
- Activities
2 types:
- Explicit
- specify the component to start
- always use for Service, to avoid security hazard
- Implicit
- declare general action to perform
- require intent-filters
- Explicit
Information within Intent
- Component name. i.e. cz.cvut.pr2.ExampleActivity
- setComponent()
- setClass()
- setClassName()
- or Intent constructor
- general action; usually CONSTANT String
- setAction()
- or Intent constructor
- Data
- data URI to setData()
- setType()
- setDataAndType()
- Category; usually CONSTANT String
- additional info
- Extra
- Key: value pair
- Bundle
- Flags
- Extra
- Component name. i.e. cz.cvut.pr2.ExampleActivity
Informações
- Descrição
- 1 Android Mapa Mental sobre Intent, criado por Igor Ekishev em 20-02-2016.
- Criado por
- Igor Ekishev
- Visualizações
- 1
- Avaliação