Hi, I am interested to have tabpanel for my application. I have achieved this by inheriting the class TabActivity. Now I want each sub-sequent activity should have the same tabpanel and from R & D, I came to know that this is possible by using ActivityGroup.
I have followed below steps 1) Created the TabActivity which has two tabs. 2) one of the activity from these tab, I have inherited from ActivityGroup. 3) Now I am intrested to open a child activity inside this activity. To do this I have used below code var intent = new Intent(); intent.SetClass(Parent, typeof(Activity1)); View childView = this.LocalActivityManager.StartActivity("SubscriptionActivity", intent).DecorView; this.SetContentView(childView); 4) On Activity1 page, I have one spinner control. I have populated/declared as below Spinner spinner = FindViewById<Spinner>(Resource.Id.spinner); spinner.ItemSelected += new EventHandler<ItemEventArgs>(spinner_ItemSelected); var adapter = ArrayAdapter.CreateFromResource(Parent, Resource.Array.planets_array, Android.Resource.Layout.SimpleSpinnerItem); adapter.SetDropDownViewResource(Android.Resource.Layout.SimpleSpinnerDropDownItem); spinner.Adapter = adapter; The above steps populate the spinner value correctly but when I tried to change value by tapping over the spinner control it gives below issue. W/WindowManager( 44): Attempted to add application window with unknown token a ndroid.os.BinderProxy@40735d78. Aborting. D/AndroidRuntime( 888): Shutting down VM W/dalvikvm( 888): threadid=1: thread exiting with uncaught exception (group=0x4 0015560) E/AndroidRuntime( 888): FATAL EXCEPTION: main E/AndroidRuntime( 888): android.view.WindowManager$BadTokenException: Unable to add window -- token android.app.LocalActivityManager$LocalActivityRecord@40589b 50 is not valid; is your activity running? E/AndroidRuntime( 888): at android.view.ViewRoot.setView(ViewRoot.java:5 27) E/AndroidRuntime( 888): at android.view.WindowManagerImpl.addView(Window ManagerImpl.java:177) E/AndroidRuntime( 888): at android.view.WindowManagerImpl.addView(Window ManagerImpl.java:91) E/AndroidRuntime( 888): at android.view.Window$LocalWindowManager.addVie w(Window.java:424) E/AndroidRuntime( 888): at android.app.Dialog.show(Dialog.java:241) E/AndroidRuntime( 888): at android.app.AlertDialog$Builder.show(AlertDia log.java:802) E/AndroidRuntime( 888): at android.widget.Spinner.performClick(Spinner.j ava:260) I think this issue is with the context I am providing to the spinner control. But I am unable to solve it. Please help me with suggestion or code samples or please tell me how to use spinner control in child activity or activitygroup. Thanks, Nilesh -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/ActivityGroup-spinner-control-issue-tp4749582p4749582.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid