Call the startActivity() method of the application context. It is most commonly used to launch the activity. startActivity() method takes only one parameter which is called Intent. The below code shows a startActivity() method with an explicit intent.
In the above code, target activity is launched on request of intent, called MenuActivity. This MenuActivity class must be registered
Java Code: This is the code to launch an activity