SFML community forums

General => General discussions => Topic started by: Fizix on December 02, 2014, 02:26:57 am

Title: Close Android Activity
Post by: Fizix on December 02, 2014, 02:26:57 am
What is the best practice to close an android activity?

In the example it checks for Event::Closed, which is when Android requests that the activity closes, but how do I request that the activity close?  Do I just call window.close() on some event?
Title: Re: Close Android Activity
Post by: Mario on December 05, 2014, 10:16:16 am
The same way you'd do it properly on any other system: Close your window, leave your main loop, then leave main().