How to handle the home key on Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
How to handle the home key on Android
Hi,
since there is no command or handler available for the homeKey (the circle on many Android phones) and probably the same as the button...the app is not closed after tapping it. (so not the backKey or the menuKey)
I see app's who are really closed when tapping on that key, especcially banking apps.
I want that too, and not that the app stays open in memory.
It's ok for many apps, but for this app i want it to close.
How to do that.
Thanks for any help.
Sphere.
since there is no command or handler available for the homeKey (the circle on many Android phones) and probably the same as the button...the app is not closed after tapping it. (so not the backKey or the menuKey)
I see app's who are really closed when tapping on that key, especcially banking apps.
I want that too, and not that the app stays open in memory.
It's ok for many apps, but for this app i want it to close.
How to do that.
Thanks for any help.
Sphere.
Re: How to handle the home key on Android
Did you try this?
Code: Select all
on iconifyStack
close this stack
end iconifyStack
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
-
- VIP Livecode Opensource Backer
- Posts: 9823
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to handle the home key on Android
Does the iconifyStack message get sent when going to the background on Android?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to handle the home key on Android
No, iconifyStack is desktop only. As far as I know there's no workaround for the problem because there are no messages to trap. The app has no way of knowing that it's in the background. This has caused me some trouble too and I haven't been able to solve it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to handle the home key on Android
Sorry MaxV according Jacque it's desktop only, thanks anyway.
Isn't it a matter that it could/should/has to be added to the LC engine, so it can be detected just at the moment of tapping like the backKey and then do something with it via a handler?
So perhaps as feature request?
I wonder how those other apps handle it.
Probably depending how and with what they are written.
Isn't it a matter that it could/should/has to be added to the LC engine, so it can be detected just at the moment of tapping like the backKey and then do something with it via a handler?
So perhaps as feature request?
I wonder how those other apps handle it.
Probably depending how and with what they are written.
-
- VIP Livecode Opensource Backer
- Posts: 7228
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to handle the home key on Android
It's been an issue for a while now, there is a discussion in a bug report here:
http://quality.livecode.com/show_bug.cgi?id=20456
It doesn't directly address your question but the info is related. The bug has been "under review" for a few months so if you add a comment maybe they'll notice and take another look.
http://quality.livecode.com/show_bug.cgi?id=20456
It doesn't directly address your question but the info is related. The bug has been "under review" for a few months so if you add a comment maybe they'll notice and take another look.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to handle the home key on Android
Thanks, i've added some comments to that report.