Forum Xamarin.Android

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.