Keep App Alive

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Googie85
Posts: 226
Joined: Tue Aug 05, 2014 10:07 am

Keep App Alive

Post by Googie85 » Sat Aug 29, 2015 9:03 am

Hello Guys,

I am trying to keep an App alive. My App is going to be accessed by customers in a local coffee shop. I am removing all of the software on the tablet except for my App, because I don't want people tampering with it. Is there an easy way to keep my App running all the time? Maybe if I write a background program that checks weather the App is running (every 2-3 seconds) and if not start it again. Maybe there is an easy way to do this...

Thanks Guys!

Much Appreciated!

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Keep App Alive

Post by MaxV » Mon Aug 31, 2015 11:13 am

In the standalon application settings, check status bar hidden.
Now there is no way to close your app. (You have to add some buttons to close your app)
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Nikos
Posts: 14
Joined: Sun Oct 26, 2014 12:49 pm

Re: Keep App Alive

Post by Nikos » Mon Aug 31, 2015 11:52 am

Since people need to access it, I would think the app needs to run in the foreground all the time (even if pressing the Home button).

Have a look at Autostart and StaY (on Google Play) which does what I think you need.

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Keep App Alive

Post by zaxos » Mon Aug 31, 2015 12:12 pm

Since i have done exacly the same thing with an internet cafe client i believe the only way is to make a different standalone that checks if your app is running and if not it restarts it. What i personaly did was make that standalone and named it svhost.exe so that ppl cant tell if its a windows process or something else. I made this standalone with Autoit, even tho you can do the same with livecode i believe an autoit script is more reliable for this job plus it is using less cpu.
Knowledge is meant to be shared.

Googie85
Posts: 226
Joined: Tue Aug 05, 2014 10:07 am

Re: Keep App Alive

Post by Googie85 » Tue Sep 01, 2015 6:52 am

Just a quick question... how do I run an App on Android?

Many Thanks,

Matthew.

sphere
Posts: 1145
Joined: Sat Sep 27, 2014 10:32 am

Re: Keep App Alive

Post by sphere » Tue Sep 01, 2015 12:17 pm

You could also simply set the display to stay on all the time, in the display settings.
If this is the only app that needs to run

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Keep App Alive

Post by zaxos » Tue Sep 01, 2015 5:02 pm

Although i just realized this is about android and i dont know much about mobiles, you could check this:http://developer.android.com/training/r ... index.html
Knowledge is meant to be shared.

Post Reply