Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Close Android Activity  (Read 2214 times)

0 Members and 1 Guest are viewing this topic.

Fizix

  • Newbie
  • *
  • Posts: 18
    • View Profile
Close Android Activity
« 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?

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Re: Close Android Activity
« Reply #1 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().

 

anything