I am working on android applications. In my application I am using two packages. I have created a login class and tabbarview class in my first package. In the second package I have created three classes i.e tab1,tab2,tab3.
In my login class I wrote code for button click action i.e in the button click I called the TabbarView.class
**Intent myIntent = new Intent(v.getContext(),TabbarView.class);
startActivity(myIntent);
finish();**
I have imported the classes(tab1,tab2,tab3) of second package in my Tabbarview class. When I am executing my application I am getting exception.
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
When I click on login button I am getting this exception. What would be the reason. Please help me……………
*