how to get the xml id used in first class to use in second class in android
<p>I'm getting the android xml id in first Activity   </p>

<p>(e.g)</p>

<pre><code>setContentView(R.layout.sample);
button1=(Button)findViewById(R.id.b_one);
button2=(Button)findViewById(R.id.b_two);   
</code></pre>

<p>Now the problem is how can i use the same button in second Activity without using          <code>findViewById()</code>.</p>

<p>(i.e) I don't want to access xml in second Activity rather than that i have to   access those button ID from the first Activity itself.</p>

<p>I'm trying this to create a common header.</p>

<p>Please help me. </p>
