how to keep app as running process?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
how to keep app as running process?
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?
LiveCode applications get Suspended, at least on android. They do not keep running in the background. 

Re: how to keep app as running process?
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.
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?
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
Re: how to keep app as running process?
It can't currently be done via livecode alone, is the bottomline.
-
- VIP Livecode Opensource Backer
- Posts: 212
- Joined: Fri Feb 01, 2013 1:31 am
- Contact:
Re: how to keep app as running process?
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?
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.