Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Android SetPage Crash

$
0
0

First off, I want to point out I already understand that you cannot call AndroidActivity's SetPage method twice.

However, I am experiencing an issue. If I open my app, and call SetPage in the OnCreate method, it will create the page like it should.
If I hit 'Home' and then re-open my app, all is well.
If I hit 'Back' and then re-open my app, OnCreate is called again and SetPage gets called again, which is crashing my application.

Is there anything I can do to get around this?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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