how to use classes from imported package in android
<p>I have a package pkg1 which say I will import in pkg2. </p>

<pre><code>secondactivity.java:
package seconddemoapp.demoapp.demo;
public class seconddemoappActivity extends Activity
{
 ----
}


firstactivity.java:
package firstdemo.firstdemoapp.demo;
import seconddemoapp.demoapp.demo.seconddemoappActivity;

public class firstactivity extends Activity
 {
------
Intent i = new Intent(firstactivity.this, seconddemoappActivity.class); 
startActivity(i); 
}
</code></pre>

<p>I am getting "NoClassDefFoundError" for <code>seconddemoappActivity.class</code></p>

<p>Where am I going wrong?
How can I use the <code>seconddemoactivity</code> class in the <code>firstactivity</code>?</p>
