Skip to content Skip to sidebar Skip to footer

Android Launcher "ondestroy" Gets Called Twice

Repro steps: Run a Launcher implemented in Xamarin.Android in debug mode. Put a breakpoint on OnDestroy method override. Open Google Maps. Start the navigation Press home button w

Solution 1:

Found the answer after many trials and errors. Add ConfigChanges.UiMode flag to the ConfigurationChanges attribute for your MainActivity class, and this solves the problem, and Launcher does not restart anymore.


Post a Comment for "Android Launcher "ondestroy" Gets Called Twice"