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

Ralph DiMola rdimola at evergreeninfo.net
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 evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] 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
clicked?

Terry,

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

on backKey
   quit
end backKey

Kind regards,

Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch

Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com

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
possible?
>
> Terry.
>
> Terry Judd  | Senior Lecturer in Medical Education Department of 
> Medical Education<http://medicine.unimelb.edu.au/medical-education>
> The University of Melbourne<http://www.unimelb.edu.au>
> M: 0435 961 594  |  E: 
> terry.judd at unimelb.edu.au<mailto:tsj at unimelb.edu.au>
> Publications<https://scholar.google.com.au/citations?user=XC5s6wwAAAAJ
> &hl=en>
>

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list