https://bugzilla.novell.com/show_bug.cgi?id=646224
https://bugzilla.novell.com/show_bug.cgi?id=646224#c0 Summary: TabLayout demo doesn't work. Classification: Mono Product: MonoDroid Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Implement the Tab Layout demo: http://monodroid.net/Tutorials/Hello_Views/Tab_Layout Build, install, run, view `adb logcat` output: W/ActivityManager( 60): Activity idle timeout for HistoryRecord{44eb6d18 TabLayout.TabLayout/tabLayout.__Proxy__HelloTabWidget} W/ActivityManager( 60): Activity idle timeout for HistoryRecord{44fb9390 TabLayout.TabLayout/tabLayout.HelloTabWidget} E/mono ( 1839): [0xafd48828:] EXCEPTION handling: Java.Lang.IllegalStateException: Exception of type 'Java.Lang.IllegalStateException' was thrown. E/Mono.Android( 1839): Java.Lang.IllegalStateException: Exception of type 'Java.Lang.IllegalStateException' was thrown. E/Mono.Android( 1839): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] in <filename unknown>:0 E/Mono.Android( 1839): at Android.Widget.TabHost.AddTab (Android.Widget.TabSpec tabSpec) [0x00000] in <filename unknown>:0 E/Mono.Android( 1839): at TabLayout.HelloTabWidget.OnCreate (Android.OS.Bundle bundle) [0x00000] in <filename unknown>:0 E/Mono.Android( 1839): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00000] in <filename unknown>:0 D/AndroidRuntime( 1839): Shutting down VM W/dalvikvm( 1839): threadid=1: thread exiting with uncaught exception (group=0x4001d800) E/AndroidRuntime( 1839): FATAL EXCEPTION: main E/AndroidRuntime( 1839): java.lang.RuntimeException: Unable to start activity ComponentInfo{TabLayout.TabLayout/tabLayout.HelloTabWidget}: java.lang.IllegalStateException: Activities can't be added until the containing group has been created. E/AndroidRuntime( 1839): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663) E/AndroidRuntime( 1839): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679) E/AndroidRuntime( 1839): at android.app.ActivityThread.access$2300(ActivityThread.java:125) E/AndroidRuntime( 1839): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033) E/AndroidRuntime( 1839): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 1839): at android.os.Looper.loop(Looper.java:123) E/AndroidRuntime( 1839): at android.app.ActivityThread.main(ActivityThread.java:4627) E/AndroidRuntime( 1839): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1839): at java.lang.reflect.Method.invoke(Method.java:521) E/AndroidRuntime( 1839): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) E/AndroidRuntime( 1839): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) E/AndroidRuntime( 1839): at dalvik.system.NativeStart.main(Native Method) E/AndroidRuntime( 1839): Caused by: java.lang.IllegalStateException: Activities can't be added until the containing group has been created. E/AndroidRuntime( 1839): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:254) E/AndroidRuntime( 1839): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:651) E/AndroidRuntime( 1839): at android.widget.TabHost.setCurrentTab(TabHost.java:323) E/AndroidRuntime( 1839): at android.widget.TabHost.addTab(TabHost.java:213) E/AndroidRuntime( 1839): at tabLayout.HelloTabWidget.n_onCreate(Native Method) E/AndroidRuntime( 1839): at tabLayout.HelloTabWidget.onCreate(HelloTabWidget.java:23) E/AndroidRuntime( 1839): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047) E/AndroidRuntime( 1839): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627) E/AndroidRuntime( 1839): ... 11 more W/ActivityManager( 60): Force finishing activity TabLayout.TabLayout/tabLayout.HelloTabWidget W/ActivityManager( 60): Activity pause timeout for HistoryRecord{44fb9390 TabLayout.TabLayout/tabLayout.HelloTabWidget} -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
