How to quit an Android app

Ralph DiMola rdimola at evergreeninfo.net
Thu Dec 22 18:45:35 EST 2016


I just had an interesting Android quit issues. I have to check if this is an
Android problem only or a characteristic of the base engine. I wonder if
this is related to stopping the debugger in the IDE and have some calling
handler do something?

Command test1
 Repeat while not test2()
  Answer "not after quit"
 End repeat
End test1

Function test2
 Answer "quit?" with "yes" and "Cancel"
 If it = "Yes" then quit
 Return true
End test2

When you tap on "yes" you see the answer dialog in test1 then the app quits.
This is wrong, why is this repeat loop still running? But... when change
test1 like this then the app quits immediately as expected.

Command test1
Local tResult
 Put test2() into tResult
 Repeat while not tResult
  Answer "not after quit"
  Put test2() into tResult
 End repeat
End test1

I could see how this could bite you in the butt. I only noticed it because
of the answer dialog in test1.

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 Bob Sneidar
Sent: Thursday, December 22, 2016 5:43 PM
To: How to use LiveCode
Subject: Re: How to quit an Android app

Point taken. However, being an IT person and having to work with customers
to resolve their issues, I find that regularly, the user will miss some
critical piece of information that would take me right to the problem. Not
only that, I have found that more times than I would like to admit, the
customer has already concluded what they think the problem is, and want to
redirect my efforts to just that one thing, so they spoon feed me just the
information necessary to get me to look at the issue in that light. Still
others (and I don't claim this is the case with anyone of us but I offer it
just for entertainment's sake) I have had users who did something wrong,
something I repeatedly told them not to do, something they signed a form
saying they would not do, and did anyway, and are anxious that I do not find
out what that thing is.

To put it another way, I tell my techs to listen to what the user tells
them, but never to believe them. ALWAYS verify. That cannot be done without
either remoting into your workstation, or having a copy or sample of wht you
are seeing.

Bob S


On Dec 22, 2016, at 13:28 , Alex Tweedly
<alex at tweedly.net<mailto:alex at tweedly.net>> wrote:

IMO, having a *requirement* for a user to create a test stack - EVEN IF THE
SIMPLE DESCRIPTION IS CLEAR AND UNAMBIGUOUS - is an unacceptable
bureaucratic nonsense.

_______________________________________________
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