I want to send stored RMS data using an HTTP connection when the application is in idle mode.
So if the user is not doing anything with the application at that time, my thread will invoke and send RMS data to server.
For this requirement, how do I how find out if the application in active mode or idle mode?
You could wait for the backlight to go off, if that's enough of an indication of whether the application is active.
Implement the SystemListener2 interface, there's a method backlightStateChange() that will be invoked after the object is registered with Application.addSystemListener