Android Tutorial : Using Intent to move from one activity to another and sending data via putExtra
 
      We talked in a previous tutorial on using Buttons and how to trigger an action following a button click.   This tutorial is the fulfillment of the previous tutorial: Android tutorial for beginners:using Button, Listener and Toast  .     In the previous tutorial we have seen how to use a button and how to add listener to the button to trigger actions.We have seen how to show a toast (a short pop up message) after clicking the button.     In this tutorial we will see how to move from an activity to another after clicking the button.   Create a new project in your eclipse (File ==> New ==> Android Application Poject) and give the name of 'Intention' to your project.     In your activity_main.xml put this code :   <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     tools:...
.jpg)