title: Find the id of the button that called intent/activity? Android
body: <p>My main activity layout contains 10 different buttons that all call the same activity (MapsActivity). </p>
  
  <p>How can I find out the id of the button that was pressed from MapsActivity ? I tried to send it by using </p>
  
  <blockquote>
    <p>intent.putExtra("id", id);</p>
  </blockquote>
  
  <p>But this id came out as the same when pushing any of the buttons.</p>
  
  <p>Do I need to create a separate intent for each button that all call the same activity? Or can I use 1 intent and just change what value it passes to MapsActivity?</p>
  
  <p>I hope I've explained this problem clearly enough! Thanks!</p>