Hello,
Hopefully someone can help me. I do have e realy strange problem.
I have 4 Projects:
1. Is the Application it self
2. Is a Library with a StatisticView
3. and 4. Is a spezial subProject. The views in here will be used by
the main Application.
All Projects (1., 3. and 4.) needs Project 2.
Project 1. 3. and 4. have the same shared user id (with out a can't
start an activity form an other Project)
I have a TabView.
1. Tab is a view out of the main Application
2. A View (StatisticView out of Project 3)
2. A View (StatisitcView out of Project 4)
Now the Problem.
I can open the StatisitcView (in Tab 2) without any problem, but do i
tap on Tab 3 the following exception will be thrown (same effect when
i start with Tab 3 and then Tab 2):
07-28 22:45:16.605: ERROR/AndroidRuntime(982): Uncaught handler:
thread main exiting due to uncaught exception
07-28 22:45:16.715: DEBUG/dalvikvm(982): GC freed 3225 objects /
205560 bytes in 99ms
07-28 22:45:16.745: ERROR/AndroidRuntime(982):
java.lang.RuntimeException: Unable to start activity ComponentInfo
{ch.fhnw.aswissbook.plugin.sms/
ch.fhnw.aswissbook.plugin.sms.gui.ActDetailsSMS}:
java.lang.ClassCastException:
ch.fhnw.aswissbook.gui.statistics.StatisticView
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2140)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.ActivityThread.startActivityNow(ActivityThread.java:1988)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.LocalActivityManager.moveToState(LocalActivityManager.java:
122)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.LocalActivityManager.startActivity
(LocalActivityManager.java:335)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.widget.TabHost$IntentContentStrategy.getContentView
(TabHost.java:592)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.widget.TabHost.setCurrentTab(TabHost.java:302)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:118)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:268)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.View.performClick(View.java:2083)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.View.onTouchEvent(View.java:3497)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.View.dispatchTouchEvent(View.java:3152)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:809)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:841)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.superDispatchTouchEvent(PhoneWindow.java:1561)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent
(PhoneWindow.java:1085)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.Activity.dispatchTouchEvent(Activity.java:1873)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
com.android.internal.policy.impl.PhoneWindow
$DecorView.dispatchTouchEvent(PhoneWindow.java:1545)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1140)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.os.Handler.dispatchMessage(Handler.java:88)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.os.Looper.loop(Looper.java:123)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.ActivityThread.main(ActivityThread.java:3742)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
java.lang.reflect.Method.invokeNative(Native Method)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
java.lang.reflect.Method.invoke(Method.java:515)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:739)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
dalvik.system.NativeStart.main(Native Method)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): Caused by:
java.lang.ClassCastException:
ch.fhnw.aswissbook.gui.statistics.StatisticView
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
ch.fhnw.aswissbook.plugin.sms.gui.ActDetailsSMS.onCreate
(ActDetailsSMS.java:37)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1122)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2103)
07-28 22:45:16.745: ERROR/AndroidRuntime(982): ... 29 more
Please help me.
Thanks a lot for your replay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---