Give one intent example in android?
This is the code to start second screen by using explicit intent.
Intent in = new Intent(this, SecondScreen.class);
This is the code to start dialer screen by using implicit intent.
Intent in = new Intent();
option 1 is an example for implicit intent and option 2 is an example for explicit intent.
both option 1 and option 2 are correct.
Back To Top