Wednesday, June 22, 2022

How we use intent in android studio

 Intent are used for communicating between the Application components and it also provides the connectivity between two apps. For example: Intent facilitate you to redirect your activity to another activity on occurrence of any event. By calling, startActivity() you can perform this task.

java code:

Intent i=new Intent(MainActivity.this,quiz.class);

startActivity(i); 

No comments:

Post a Comment