1. Add the FlurryAgent.jar library to your application
You need to ensure that the classes contained in the FlurryAgent.jar file are included in your application's jar file.
2.Ensure your JAD file has the correct properties
Flurry will use the value of this field as the name of the version to report analytics under (unless you override it with FlurryAgent.setVersionName).
The Flurry agent uses http to send data reports, so if your target phones require it, include the "javax.microedition.io.Connector.http" permission.
The agent will store 16KB of data in the record store so that it can report session information during subsequent sessions. It is recommended that you specify a data size of at least 16384 to accomodate this.
3.Add lifecycle calls in your code
Insert a call to FlurryAgent.onStartApp(MIDlet, String) to begin a session, passing it a reference to your MIDlet, and your application's API key ["KEY"]. It is recommended to place this call at the beginning of the startApp() method of your MIDlet.
Insert a call to FlurryAgent.onDestroyApp() to terminate a session. It is recommended to place this call at the end of destroyApp() and immediately before any calls to notifyDestroyed() on your MIDlet.
Insert a call to FlurryAgent.onPauseApp() to pause a session. If onStartSession is called again within 5 minutes, then the existing session will be continued. (This period can be adjusted withFlurryAgent.setContinuePausedSessionMillis). It is recommended to place this call at the beginning of the pauseApp() method and immediately before any calls to notifyPaused() on your MIDlet.