how to use the widgets assigned in a activity in another activity?
<p>I am creating an android project . In that i i got the ids from the XML file and wrote the click events in a (class or activity) . I want to use the widgets from another class without getting the id's again. like (Button btn=(Button)findViewById(R.id.button1);) i want to use this code in one class </p>

<p>But I want to use the Button btn in another class and also the click event should work.</p>
