Android and Message when removing the app from memory

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
p.schelvis
Posts: 17
Joined: Wed Dec 04, 2013 1:52 pm

Android and Message when removing the app from memory

Post by p.schelvis » Wed Oct 01, 2014 12:45 pm

Hello,

I wonder which message is send in LC when you press the multitasking button on an android device and swipe the app to the left. Android will remove the app from memory. I tried Closestack, Shutdown and some more. Not one of them seems to work. Maybe I did something wrong. Does anybody knows and maybe show me the code.

Thanx,
P.Schelvis

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Android and Message when removing the app from memory

Post by Simon » Wed Oct 01, 2014 6:02 pm

Hi P.Schelvis,
Android will remove the app from memory
Are you sure?
That would be odd as
...the multitasking button..
actually means the opposite :)

Simple test, make a stack with 2 cards and buttons to navigate between them. On the Android start the app switch to card 2 and press this "multitasking" button. Now immediately start your app again (no running video's or other in between). Which card is showing?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

p.schelvis
Posts: 17
Joined: Wed Dec 04, 2013 1:52 pm

Re: Android and Message when removing the app from memory

Post by p.schelvis » Wed Oct 01, 2014 7:56 pm

Sorry, i saw that the name is "app switcher button" (the double rectangles) and not multitasking button. Doesn't matter, still want to know what mesage is send by LC wenn I swipe the app tot the left or to the right (remove app from memory).

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Android and Message when removing the app from memory

Post by Simon » Wed Oct 01, 2014 8:10 pm

Hi p.schelvis,
If the app is actually shutting down then
"shutdownRequest" and "shutdown" messages.

Hey... that is kind'a English like :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

p.schelvis
Posts: 17
Joined: Wed Dec 04, 2013 1:52 pm

Re: Android and Message when removing the app from memory

Post by p.schelvis » Wed Oct 01, 2014 10:19 pm

I have done a test with "shutdownRequest" and "shutdown". When swiping the app to remove, there was no "shutdownRequest" and "shutdown"message.

I found out that there is a "Closestack" message when you use the return-button on the home screen of the android device. But NO message when swiping! Still need some help.

P. Schelvis

Post Reply

Return to “Talking LiveCode”