Added activity lifecycle support to segment.io (AnalyticsTracker) and Flurry.