how to activate loaddata() from another class
<p>i have this code in the Main extends Activity</p>

<pre><code>    public void loaddata()
    {
        Toast.makeText(Main.this, ("Working"),Toast.LENGTH_LONG).show();
    }
</code></pre>

<p>i use this in the second extends Activity</p>

<pre><code>    public void turnon() 
    {
        Main dp = new Main();
        dp.loaddata();
    }

@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCreate(savedInstanceState);
    setContentView(R.layout.second);

    okbutton = (Button) findViewById(R.id.okbutton);

    okbutton.setOnClickListener(new OnClickListener() 
    { 
        public void onClick(View arg0)
        {
              turnon();
        }
    });
}
</code></pre>

<p>but it give force close 
any idea</p>
