GameMaker (2.0 - 2.2.x)

Android native quit minimize

Harpwood Studio

You must be logged in to obtain assets


This tiny extension for android devices, terminates your app without ending it to background processes (default behavior). Note that with update v1.0.4 you can alternatively minimize you game and send it to background processes. Boilerplate code aside, this extension is only a single line of code that commands the device to terminate the app natively. The package "com.yoyogames.runner.RunnerJNILib" it is not imported, so I believe this is the most tiny and lightweight native android extension that could be created for GameMaker: Studio 2.

Free the using resources of your user’s device immediately after exiting your app and prolong the battery duration.

Instructions: Simply import the extension and then put in your quit/exit part of your code :


With update v1.0.4 you can alternatively minimize you game and send it to background processes:



  • This extension is intended strictly for android phones and tablets ONLY.
  • This extension has not tested on Amazon Fire
  • If you develop cross platform, better use this extension conditional. Examples:

    if os_type == os_android then android_game_end();
    if keyboard_check_pressed(vk_backspace) and os_type == os_android then android_game_minimize(); 
  • Google is not suggesting terminating the app by the developer (android_game_end) and this is considered as a bad practice and instead is suggesting to send the to background (android_game_minimize) and let the os take care of it. Since is not an obligation, developer should have to option to terminate the app if he wish so.

Even if this extension is completely free and CC0, please read the LICENSE before using it.

End User Licence Agreement (EULA).

Age Rating: 4+


GMS2 - Version 1.0.4. Published June 21, 2020

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait