how can i call activity class from other java class?
<p>I have just started android.</p>

<p>I just want to know that how can i call activity class from other java class.</p>

<p>i just want to pass class object to activity class.</p>

<p>anyhelp please.</p>

<pre><code>public class GsonParser extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    MagazineThread thread=new MagazineThread();
    thread.start();
}
public GsonParser(JsonMagazineParser Obj)
{

}
</code></pre>

<p>}</p>

<p>and i am just doing like from other class.
GsonParser obj=new GsonParser(this);passing obj to activity class.how can i achieve that.</p>

<p>can u please tell me.</p>
