private void setupActivityMonitor ( ) { if ( config . trackActivities ) { try { IntentFilter filter = null ; activityMonitor = inst . addMonitor ( filter , null , false ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
This is were the activityMonitor is set up . The monitor will keep check for the currently active activity .