Android uses Intent for communicating between the components of an Application and also from one application to another application.
Intent are the objects which is used in android for passing the information among Activities in an Application and from one app to another also. Intent are used for communicating between the Application components and it also provides the connectivity between two apps.
For example: Intent facilitate you to redirect your activity to another activity on occurrence of any event. By calling, startActivity() you can perform this task.
Explicit Intent:
• Explicit Intents are used to connect the application internally.
• In Explicit we use the name of component which will be affected by Intent. For Example: If we know class name then we can navigate the app from One Activity to another activity using Intent. In the similar way we can start a service to download a file in background process.
Explicit Intent work internally within an application to perform navigation and data transfer. The below given code snippet will help you understand the concept of Explicit Intents
Implicit Intent:
• In Implicit Intents we do need to specify the name of the component. We just specify the Action which has to be performed and further this action is handled by the component of another application.
• The basic example of implicit Intent is to open any web page

Share with your friends:

Leave a comment

Your email address will not be published. Required fields are marked. *