This Extention does inform you about the Android Activity Events like onStart(), onPause...
Its very usefull and sometimes necessary for 3rd party extentions!
- Download this extension.
- In GameMakerStudio2 under extension -> rightclick AddExisting -> choose downloaded file -> done
// Async (Social)
if (ds_exists(async_load, ds_type_map)) {
var _activity = ds_map_find_value(async_load, "activity");
if (is_undefined(_activity)) return;
if (_activity == "onResume") { // gets called when user resume game}
if (_activity == "onRestart") { // gets called when app restarts}
if (_activity == "onStart") { // gets called at startup}
if (_activity == "onPause") { // gets called at pause}
if (_activity == "onStop") { // gets called at end}
}