Jump to content
Alexandre Pires

How to read a table every x time.

Recommended Posts

Hi Guys, I need my Android background service to read a table from my database every 30 seconds. What would be the best way to do this? 

I am currently using an infinite loop in a thread and sleep, but I believe it is not the best approach.

@Dave Nottage Is there any kastri component that helps to do this?

 

I am using Delphi 10.3

Thanks for some help

Alexandre

Share this post


Link to post
13 hours ago, Alexandre Pires said:

@Remy Lebeau do you mean ttimer component? But does ttimer work on services?

No, not in background.

But in background you need maybe also other measures to keep Android awake.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×