I have an activity and the activity does some code behind when the screen orientation changes. So if the users decides to flip the screen back and forth the code behind will break. I want to catch that with a try/catch and in the catch i want the activity to restart or maybe if it is easier to go back one step to the activity before it. Im successfully catching the exception right now but i don't really know what to do in the catch.
If tried this:
OnDestroy();
StartActivity(typeof(ImageGridActivity));
or simply
Finish();
so that it hopefully just jumps back one activity. but it doesn't. Plz help!