Page 1 of 1
how to keep app as running process?
Posted: Sat Jul 27, 2013 3:17 am
by SteveTX
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?
Re: how to keep app as running process?
Posted: Sat Jul 27, 2013 3:34 am
by SteveTX
LiveCode applications get Suspended, at least on android. They do not keep running in the background.

Re: how to keep app as running process?
Posted: Tue Aug 06, 2013 8:42 pm
by SteveTX
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.
Re: how to keep app as running process?
Posted: Thu Aug 08, 2013 7:41 am
by viro
Could you go a bit into detail?
Re: how to keep app as running process?
Posted: Thu Aug 08, 2013 9:23 am
by SteveTX
It can't currently be done via livecode alone, is the bottomline.
Re: how to keep app as running process?
Posted: Wed Sep 25, 2013 8:16 pm
by William Jamieson
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.
Re: how to keep app as running process?
Posted: Thu Sep 26, 2013 2:16 am
by SteveTX
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.