Closing/quitting an android app? (SOLVED)

Hi!

Is there anyway to get the defold engine to close an app on android? I can’t find anyway to do it via lua.

Does os.exit() work? Does this work? I am not familiar with Android development, but those are the two standard ways to close the application.

I expect both of those will work, I just didn’t happen to find either of them. Thanks for your help!

(I wonder if there should be a smaller, quicker section of the forum for these very quick questions?)

1 Like

I think that could be nice to have if there was a greater volume of bigger questions around, but as it stands now the ‘questions’ part of the forum seems quite alright with handling any size of question, big or small, without bigger ones being overrun by too many small ones.

1 Like

I actually think the Slack channel is the best forum for these questions. Most of the time instant answer as well :slight_smile:

1 Like

Problem with using the slack chat is that it means answers for people searching in the future mean they don’t find a solution and ask the same questions again.

1 Like