com.webtrends.mobile.rim
Class WebtrendsApplication

java.lang.Object
  extended by Application
      extended by com.webtrends.mobile.rim.WebtrendsApplication

public class WebtrendsApplication
extends Application

An extension of net.rim.device.api.system.Application that is designed to be used with applications that implement the BlackBerry Analytics Service. If you extend your application using WebtrendsApplication, data about application starts and transitions between states is automatically sent to the data collection server. Alternatively, if you want to have more control over how this data is tracked, you can override activate() and deactivate() to track starts and transitions manually.


Constructor Summary
WebtrendsApplication()
           
 
Method Summary
 void activate()
          The system invokes this method when it brings the application to the foreground.
 void deactivate()
          The system invokes this method when it pushes the application to the background.
 void enterEventDispatcher()
          Enters the event dispatcher.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebtrendsApplication

public WebtrendsApplication()
Method Detail

activate

public void activate()
The system invokes this method when it brings the application to the foreground. Override this method and invoke onApplicationForeground() if you want to manually track instances where the application starts, or moves to the foreground.


deactivate

public void deactivate()
The system invokes this method when it pushes the application to the background. Override this method and invoke onApplicationBackground() if you want to manually track instances where the application moves to the background.


enterEventDispatcher

public void enterEventDispatcher()
Enters the event dispatcher.