In this post, we will see how to run a task in the background of a mobile app developed using Oracle MAF.There is a default utility available in Oracle MAF to run java code in background threads which is MafExecutorService. It has a method execute() to run java runnable on a background thread in the context of the calling thread’s MAF feature context. The syntax of the method is like
public void run()
//Invoke your methods here
If you update any data change events in the background, invoke below method to make it effective.