Getting javainstantiationexception in android
<p>I am working on android applications. In my application I am using two <strong>packages</strong>. I have created a <strong>login class</strong> and <strong>tabbarview</strong> class in my first package. In the second package I have created three classes i.e <strong>tab1,tab2,tab3</strong>. 
      In my login class I wrote code for button click action i.e in the button click I called the TabbarView.class</p>

<pre><code>         **Intent myIntent = new Intent(v.getContext(),TabbarView.class);
              startActivity(myIntent);
              finish();**
</code></pre>

<p>I have imported the classes(tab1,tab2,tab3) of <strong>second package</strong> in my Tabbarview class. When I am executing my application I am getting exception.</p>

<p><strong>08-23 14:28:29.245: ERROR/AndroidRuntime(687): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{pl.magot.vetch.ancal/pl.magot.vetch.ancal.TabbarView}: java.lang.InstantiationException: pl.magot.vetch.ancal.TabbarView</strong></p>

<p>When I click on login button I am getting this exception. What would be the reason. Please help me...............</p>
