Able to use android:finishOnTaskLaunch?

Is it possible for us to specify anything in build.settings or config.lua to set this? It makes sense that it’s set to default by false but we are working with a publisher of tabletop games at restaurants that requires this to be set to true.

If there’s no way to do it I assume I can use apktool- unpack and repack it - but would be awesome if there’s a way to do this without doing that
[import]uid: 32462 topic_id: 32324 reply_id: 332324[/import]

Hi All,
Wanted to bump this in case anyone has any suggestion. Basically what I’m trying to do is have the app restart every time - in other words, I don’t want it to ever suspend if they close it, I want a full “close”. The idea here is that patrons will be playing it at a table in a restaurant and the restaurant wants to be sure that every patron gets a ‘new’ experience.

I tried decompiling my apk using apktool, adding the attribute, and recompiling, but that didn’t do the trick. Any thoughts/things to try would be greatly appreciated. The only thing I can think of is ‘faking it’ by going to the main menu and clearing any saved data on resume but I’d like to avoid that if possible.

Thanks! [import]uid: 32462 topic_id: 32324 reply_id: 129496[/import]

Hi All,
Wanted to bump this in case anyone has any suggestion. Basically what I’m trying to do is have the app restart every time - in other words, I don’t want it to ever suspend if they close it, I want a full “close”. The idea here is that patrons will be playing it at a table in a restaurant and the restaurant wants to be sure that every patron gets a ‘new’ experience.

I tried decompiling my apk using apktool, adding the attribute, and recompiling, but that didn’t do the trick. Any thoughts/things to try would be greatly appreciated. The only thing I can think of is ‘faking it’ by going to the main menu and clearing any saved data on resume but I’d like to avoid that if possible.

Thanks! [import]uid: 32462 topic_id: 32324 reply_id: 129496[/import]

Try calling [lua]native.requestExit()[/lua] when your app receives an “applicationSuspend” system event. That will call the Corona activity’s [lua]finish()[/lua] method in Java and exit it gracefully. [import]uid: 32256 topic_id: 32324 reply_id: 129599[/import]

Try calling [lua]native.requestExit()[/lua] when your app receives an “applicationSuspend” system event. That will call the Corona activity’s [lua]finish()[/lua] method in Java and exit it gracefully. [import]uid: 32256 topic_id: 32324 reply_id: 129599[/import]

This worked perfectly - thanks.

-Joe [import]uid: 32462 topic_id: 32324 reply_id: 132526[/import]

This worked perfectly - thanks.

-Joe [import]uid: 32462 topic_id: 32324 reply_id: 132526[/import]