Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Crash after calling StartActivity numerous times

$
0
0

I've got 3 main views of my application, all of which are held by separate Activities.

I use a method in the base class of all this activities to switch back and forth between them. However I'm getting a crash after 8 switches.

I'm doing the view switch in this method: switch (viewModel.CurrentTerminalViewTypeToDisplay) { case TerminalViewTypes.AdvertisementScreen: break; case TerminalViewTypes.OrderOnTab: StartActivity (typeof(OrderOnTab)); break; case TerminalViewTypes.CashCloseTabScreen: StartActivity(typeof(CashClose)); break; case TerminalViewTypes.ViewTabs: StartActivity (typeof(ViewTabs)); break;

Anyone seen any problems like this? Should I be pausing the current activity somehow before switching?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>