They are basically massage passed between components (Activities, Services, Broadcast receivers etc). As the name suggests Intents are intentions to perform something. We’ll start of with the basic concept of starting an activity from a current activity. We can achieve other solutions using the same idea. Instead, passing data from one activity to another and displaying related info is a better way. Creating multiple activities to display contents of same properties is not an ideal solution. Intents in android offers this convenient way to pass data between activities using Extras. Whenever you need data from an activity to be in another activity, you can pass data between then while starting the activities.
0 Comments
Leave a Reply. |