Forcing an android app to quit when the 'home' button is clicked?

Ralph DiMola rdimola at
Mon Jan 18 19:59:04 EST 2016

That will work if the user hits the back key but if they hit the home button
not so much. I leave my app open but I think remember some thread that
mentioned the engine sends a message when the app is de-focused. Can't
remember what it was. I believe it was suspendStack and resumeStack

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at] On Behalf
Of Mark Schonewille
Sent: Monday, January 18, 2016 7:46 PM
To: How to use LiveCode
Subject: Re: Forcing an android app to quit when the 'home' button is


Reading the docs, I'd say the following should be possible:

on backKey
end backKey

Kind regards,

Mark Schonewille

Buy the most extensive book on the
LiveCode language:

Op 1/18/2016 om 03:30 schreef Terry Judd:
> On iOS the fact that a LC app routinely quits when the home button is
clicked can be a pain but in the case of the app I'm currently developing I
actually want this to occur. Anyway, I'm covered on iOS but how do I make
the app quit when the user leaves it on an android device, or is this not
> Terry.
> Terry Judd  | Senior Lecturer in Medical Education Department of 
> Medical Education<>
> The University of Melbourne<>
> M: 0435 961 594  |  E: 
> terry.judd at<mailto:tsj at>
> Publications<
> &hl=en>

use-livecode mailing list
use-livecode at
Please visit this url to subscribe, unsubscribe and manage your subscription

More information about the Use-livecode mailing list