What is Explicit intents in Android SDK?

Explicit intents in Android are used to start a specific component of an application, such as an activity or a service. Unlike implicit intents, which do not specify a target component, explicit intents directly indicate the specific class to be launched. This happens by providing the class name of the target component in the intent.

Example of Explicit Intent

Intent intent = new Intent(CurrentActivity.this, TargetActivity.class); startActivity(intent);

In the above example, an explicit intent is created to start TargetActivity from the CurrentActivity.


Explicit intents Android intents start activity Android SDK