Hi Guys,

I want 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 want to have one Alert Dialog after clicking on
button. I have populated/declared as below 
                    AlertDialog.Builder builder = new
AlertDialog.Builder(this.Parent);
                    builder.SetTitle("Action");
                    builder.SetSingleChoiceItems(arrWeekdays,0, (sender,
args) =>
                    {
                        string selVal = arrWeekdays[(int)args.Which];
                    });
                    builder.SetPositiveButton(Resource.String.DaysOK,
(sender, args) =>
                    {

                    });                    
                    builder.Show();
On this Activity when i clicks on button to show aler dialog, it terminates
the application and gets error in logcat as
"android.views.windowmanagerbadtokenexception unable to add windows"

I think this issue is with the context I am providing to the Alert dialog
while creating. 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
S.Rahman

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Alert-Dialog-in-Activity-Group-tp4785668p4785668.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

Reply via email to