how to get context in to other class
<p>i have <code>public class ExperimentAllInOneActivity extends Activity implements    OnClickListener</code> on each button click listener i want to go some other class like <code>public class TemperatureStrategy</code> and perform all logic calculation in this class but main thing is that i have class like <code>public class DialogDisplay extends Dialog implements OnItemSelectedListener</code> in this class a custom dialog is created. Now I have question is that on each button onclick listener I want to call(display) this custom dialog class in, spinner class and like that type of element, and all logic performed with class TemperatureStrategy. How to build constor and pass context of all class?</p>
