What is Intent in Android?

In Android, it is quite usual for users to witness a jump from one application to another as a part of the whole process, for example, searching for a location on the browser and witnessing a direct jump into Google Maps or receiving payment links in Messages Application (SMS) and on clicking jumping to PayPal or GPay (Google Pay). This process of taking users from one application to another is achieved by passing the Intent to the system. Intents, in general, are used for navigating among various activities within the same application, but note, is not limited to one single application, i.e., they can be utilized from moving from one application to another as well. 

Intents could be Implicit, for instance, calling intended actions and explicit as well, such as opening another activity after some operations like onClick or anything else. Below are some application of Intents:

  1. Sending the User to Another App
  2. Getting a Result from an Activity
  3. Allowing Other Apps to Start Your Activity

The collaborative nature of Android applications only results in a better user experience. The question here is if the intent is for an application that is not present in the device, what’s the next call?

Deep Linking

Deep Link is an URL that redirects the device to the API of that Missing Application and then service is run on the system to check if a version of that application exists on the device. For time being, let’s assume that the application is not available on the device and no previous versions ever existed. This service then makes a call to the Play Store from the device and the application appears, just a matter of download.

Not deviating from the topic, there are a few examples that already exist in Android Studio for redirecting to other applications, for example, Dialing Numbers, Sending SMSs, Opening Settings, etc. Everyday examples include redirecting to YouTube, Maps, WhatsApp, Facebook, etc.  Android community, especially the Kotlin Community is at its zenith every single impending day. Kotlin has witnessed a huge amount of sudden growth in the past few years and could be one of the vital tools in the future replacing Java & possibly Julia also.

My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.