Android - what is the good-practice way of handling button clicks on the header of an app
<p>I am working on a header for an app.  The header will have 4 buttons.  Each button will have a listener and some code to send it to the home of that button.</p>

<p>The Java code for the buttons will be the same so I am wondering what I can do so that I can have that code in one place and reuse it in all my screens. How do people typically handle this kind of a scenario? Should/can I make a utility class and just import that? If I do, then how do I handle code like this so it would know which intent I am on?</p>

<pre><code>          Intent myIntent = new Intent(CurrActivity.this, NextActivity.class);
          CurrActivity.this.startActivity(myIntent);
</code></pre>

<p>Thanks!</p>
