When an android device is rotated, activity is normally recreated.
If I would like to display an alert/progress bar from my MvvmCross view model (or do something else requiring a living activity instance), what is the recommended way of handling rotation?
-----Added example-----
Currently we are working using MVP style.
Presenter has a reference to the view interface, and it can call methods like view.DisplayDialog, view.DisplayError or view.DisplayProgress.
Android implementation does something like this:
var dialog = AlertDialog.Builder(this)
or
Toast.MakeText(BaseContext, message, ToastLength.Long);
or
_progressDialog = new ProgressDialog(this);
_progressDialog.SetTitle(title);
_progressDialog.SetMessage(message);
_progressDialog.SetCancelable(false);
_progressDialog.Show();
In all these cases a reference to the Context (i.e. activity) is necessary.
Now, moving to MVVM style and MvvmCross, how would you change this kind of code?