Skip to content Skip to sidebar Skip to footer

The Life Cycle Of The Intent?

Does the Intent have life cycle? If the Intent has life cycle,what is it like in the life cycle?

Solution 1:

Either I'm not really sure what you mean, or you do not fully understand an intent.

An intent is a message. It is used to start some sort of process, either explicitly by naming the activity, or implicitly. It can have some data to send to the intent.

If you would make a "lifecycle", it would look something like this

  • Creation.
  • Resolution
  • Destruction

It has a lifecycle like most objects, in the sense that it is made, used and destroyed. It does not have a lifecycle like an activity, with calls and methods and all that.

Solution 2:

No Intent does not have any Life cycle . They allow to send or receive data from and to other activities or services.Intents are basically message that is passed between components (such as Activities, Services, Broadcast Receivers, and Content Providers).

for more details see the link

Post a Comment for "The Life Cycle Of The Intent?"