Hi guys !
I'm kind of a noob in the android development, and I found this project that looks really awesome !
I tried to use it but I get an error when I click on the button that should send me to my screen with tabs. I changed my old TabActivity for a ScrollableTabActivity, here is my code :
Using java Syntax Highlighting
public class Creation extends ScrollableTabActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setDelegate(new SliderBarActivityDelegateImpl());
setDefaultShade(RadioStateDrawable.SHADE_GRAY, RadioStateDrawable.SHADE_GREEN);
this.addTab("Client", R.drawable.star, new Intent(this, Client.class));
this.addTab("Construction", R.drawable.star, new Intent(this, Construction.class));
commit();
}
}
Parsed in 0.032 seconds, using
GeSHi 1.0.8.4
and here is my button to access it :
Using java Syntax Highlighting
Intent intent = new Intent(this, Creation.class);
startActivity(intent);
} catch (Exception e) {
Log.e("Error in creation", e.getMessage());
}
Parsed in 0.033 seconds, using
GeSHi 1.0.8.4
and finally my error :
07-11 10:14:23.941: ERROR/AndroidRuntime(364): FATAL EXCEPTION: main
07-11 10:14:23.941: ERROR/AndroidRuntime(364): java.lang.NoClassDefFoundError: com.project.seven.Creation
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at com.project.seven.Menu1.onClick(Menu1.java:33)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.view.View.performClick(View.java:2408)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.view.View$PerformClick.run(View.java:8816)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.os.Handler.handleCallback(Handler.java:587)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.os.Handler.dispatchMessage(Handler.java:92)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.os.Looper.loop(Looper.java:123)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at android.app.ActivityThread.main(ActivityThread.java:4627)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at java.lang.reflect.Method.invokeNative(Native Method)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at java.lang.reflect.Method.invoke(Method.java:521)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-11 10:14:23.941: ERROR/AndroidRuntime(364): at dalvik.system.NativeStart.main(Native Method)
I'm really sorry but I really don't understand why it won't open it as it was working before, with my TabActivity. I only put two tabs but it should be around 15 at the end so I really need this to work. I'm working on a Galaxy Tab on android 2.2, this project is for a company and they WANT tabs.
WOuld you have an idea ? I think this class Creation stay an activity so I don't know if I should change something in the manifest...
Every advice is appreciated, thank you very much !!
Seb