how to keep app as running process?

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

how to keep app as running process?

Post by SteveTX » Sat Jul 27, 2013 3:17 am

In order to use local event notifications and track 24-hour rollover periods, i need my app to be running in the background even when it isn't front screen. How is this accomplished in livecode?

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: how to keep app as running process?

Post by SteveTX » Sat Jul 27, 2013 3:34 am

LiveCode applications get Suspended, at least on android. They do not keep running in the background. :(

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: how to keep app as running process?

Post by SteveTX » Tue Aug 06, 2013 8:42 pm

LiveCode will need to make some changes to do this, but here is how it is done.
0. Add custom external binary to run as a process
1. Open compiled APK binary
2. Modify manifest to change invoker intent
3. Make the intent as a process that calls the external binary then keeps following the invocation path of the livecode app.

viro
Posts: 52
Joined: Fri Jul 05, 2013 6:59 pm

Re: how to keep app as running process?

Post by viro » Thu Aug 08, 2013 7:41 am

Could you go a bit into detail?
the funniest thing about this particular signature is that by the time you realize it doesn't say anything it's too late to stop reading it

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: how to keep app as running process?

Post by SteveTX » Thu Aug 08, 2013 9:23 am

It can't currently be done via livecode alone, is the bottomline.

William Jamieson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 212
Joined: Fri Feb 01, 2013 1:31 am
Contact:

Re: how to keep app as running process?

Post by William Jamieson » Wed Sep 25, 2013 8:16 pm

Would there be a way to create an external in Java that will allow the Livecode app to run in the background? I feel that this could change a lot for the platform, but maybe we should wait and see what is coming with the release of next generation.

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: how to keep app as running process?

Post by SteveTX » Thu Sep 26, 2013 2:16 am

There is not a way to do it currently via Livecode, but you could create an app that instead launches livecode and handles the bits as the JNI interface. I would be willing to pay a bounty to have someone work on this, but what it really requires is access to the core parts of livecode which aren't opensource, such as the engine and packer.

Post Reply