Android Question Inactive Background Service

epiCode

Active Member
Licensed User
Hi Everyone,
I am struggling a bit with having the app run in Background to do some number crunching.
While using the few methods I tried, it allows the app to not get killed but it does not allow the app to function in background except for a few seconds (after screen off).
Here are few things I have already tried.
1. Run code from B4Xpages
2. Create a new Background Service
3. Used Notifications method
4. Used partial wakelock

Is there a workaround which allows code to continue to execute in background using intent?
Would really appreciate if anyone can suggest some alternatives.
Thanks!
 

epiCode

Active Member
Licensed User
As far as I can see B4XPages does run code when in the background and when the screen is off. If I start a timer it just keeps on ticking and running the event code.
I will try the timer method. Thanks Agraham!
 
Upvote 0
Top