One way, use a timer in the Main module to call a sub periodically. Then add your DBRequestMananger to your project and write JRDC2 client code as usual.
Another option is to use one or more background workers (see https://www.b4x.com/android/forum/threads/server-background-workers.73269/). Just don't forget the StartMessageLoop as shown in the example code snippet (else your worker will finish on the first call to Sleep / Wait For and you will not be able to capture events in the worker's thread).
One way, use a timer in the Main module to call a sub periodically. Then add your DBRequestMananger to your project and write JRDC2 client code as usual.
Another option is to use one or more background workers (see https://www.b4x.com/android/forum/threads/server-background-workers.73269/). Just don't forget the StartMessageLoop as shown in the example code snippet (else your worker will finish on the first call to Sleep / Wait For and you will not be able to capture events in the worker's thread).
Another option is to use one or more background workers (see https://www.b4x.com/android/forum/threads/server-background-workers.73269/). Just don't forget the StartMessageLoop as shown in the example code snippet (else your worker will finish on the first call to Sleep / Wait For and you will not be able to capture events in the worker's thread).