Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Dialog fragment handling rotation changes

TripleDoubleTripleDouble BGMember ✭✭✭

Hello.

I have a Dialog fragment. I am using a event to pass back the data to the activity.
It works fine. But when I change the orientation i get this error

Any ideas ?

When I change the position I use public override void OnSaveInstanceState(Bundle outState) and public override void OnActivityCreated(Bundle savedInstanceState)

Answers

  • TripleDoubleTripleDouble BGMember ✭✭✭

    In addition.

    I using event - public event EventHandler OnEditCustomerComplete ;

    The error is that OnEditCustomerComplete is null.

    I get this error only when I change the orientation.

    Is there any way to pass the event using public override void OnSaveInstanceState(Bundle outState) and public override void OnActivityCreated(Bundle savedInstanceState) like others ints and bools ?

  • TripleDoubleTripleDouble BGMember ✭✭✭

    Any ideas?

Sign In or Register to comment.