How to store and display the button names ( in different screens)that are clicked by user in android
<p>In my app I have 4 screens(screen1,screen2,screen3,screen4) </p>

<p>Screen1 has 3 buttons(B1,B2,B3)
Screen2 has 3 buttons(B4,B5,B6)
Screen3 has 3 buttons(B7,B8,B9)</p>

<p>If a user clicks on any button in screen1 then screen2 is rendered. If a user clicks on any button in screen2 then screen3 is rendered.</p>

<p>My problem is:  </p>

<p>In screen4 I have to display the button names that are clicked by user.</p>

<p>i.e If a User clicks on B2 in screen1 then clicks on B6 in screen2 then clicks on B7 in screen3, the output of screen4 should be:</p>

<p>B2</p>

<p>B6</p>

<p>B7</p>

<p>How can I do this?
Thank you in advance.</p>
