Intent are used to start a new activity from the current activity. Two ways
1) Activity.startActivity (intention); 2) Activity.startActivityForResult (intent, rqwuestCode); // The above thing you need to add to the .java file
The intent filter to specify in the manifeast file.
// Intent filter is used for the broadcast receiver. Whenever an intent filter condition is met, Android runs this action.
source share