Articles → Android → Intent In AndroidIntent In AndroidIn this article, we will discuss about Intent in android.What Is Intent? An intent is the message object that is used to communicate between android components like activities.Example In this example, we will go from one activity to another using intent.Intent i = new Intent(getApplicationContext(), LoginActivity.class); startActivity(i);This code will navigate from main activity to login activity.Posted By - Karan Gupta Posted On - Wednesday, September 18, 2019 Updated On - Monday, December 2, 2019 Query/Feedback Your Email Id Subject Query/Feedback Characters remaining 250
Intent i = new Intent(getApplicationContext(), LoginActivity.class); startActivity(i);
Query/Feedback