Java Code Examples for com.flurry.android.FlurryAgent#onStartSession()
The following examples show how to use
com.flurry.android.FlurryAgent#onStartSession() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LetvBaseActivity.java From letv with Apache License 2.0 | 6 votes |
protected void onStart() { if (mHomeKeyEventReceiver != null && mHomeKeyEventReceiver.isHomeClicked()) { BaseApplication.setAppStartTime(System.currentTimeMillis()); } super.onStart(); if (hasApplyPermissions()) { LeMessageManager.getInstance().dispatchMessage(new LeMessage(LeMessageIds.MSG_FLOAT_BALL_REQUEST_DATA)); FlurryAgent.onStartSession(this, LetvConfig.getFlurryKey()); if (mHomeKeyEventReceiver != null && mHomeKeyEventReceiver.isHomeClicked()) { StatisticsUtils.sHasStatisticsLaunch = false; isLoginStatatistics = false; statisticsLaunch(0, true); LogInfo.LogStatistics("app start from home"); } } }
Example 2
Source File: FlurryTest.java From foam with BSD 3-Clause "New" or "Revised" License | 6 votes |
@Test public void testLogEvent() { PowerMockito.mockStatic(FlurryAgent.class); Context mockContext = mock(Context.class); Flurry flurry = new Flurry(null); flurry.logEvent(mockContext, "test_event"); //Switch to verify mode PowerMockito.verifyStatic(); FlurryAgent.onStartSession(eq(mockContext)); FlurryAgent.logEvent(eq("test_event")); FlurryAgent.onEndSession(eq(mockContext)); }
Example 3
Source File: Analytics.java From ExtensionsPack with MIT License | 6 votes |
public static void start(Context ctx, String flurryKey, String localyticsKey) { Log.d(tag, "Starting Localytics"); if (localytics == null) { localytics = new LocalyticsSession(ctx, localyticsKey); } localytics.open(); localytics.upload(); Log.d(tag, "Starting Flurry"); FlurryAgent.onStartSession(ctx, flurryKey); FlurryAgent.setLogEvents(true); Log.d(tag, "Analytics started"); }
Example 4
Source File: Flurry.java From foam with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * {@inheritDoc} */ @Override public void logEvent(Context context, String event) { FlurryAgent.onStartSession(context); FlurryAgent.logEvent(event); FlurryAgent.onEndSession(context); }
Example 5
Source File: HomeActivity.java From zidoorecorder with Apache License 2.0 | 5 votes |
@Override protected void onStart() { super.onStart(); try { FlurryAgent.onStartSession(this, "T66P794D7KVY7BQVJC99"); } catch (Exception e) { // TODO: handle exception } }
Example 6
Source File: MainActivity.java From NYU-BusTracker-Android with Apache License 2.0 | 5 votes |
@Override public void onStart() { super.onStart(); if (BuildConfig.DEBUG) Log.v("General Debugging", "onStart!"); onStartTime = System.currentTimeMillis(); FlurryAgent.onStartSession(this, getString(BuildConfig.DEBUG ? R.string.flurry_debug_api_key : R.string.flurry_api_key)); }
Example 7
Source File: SplashActivity.java From letv with Apache License 2.0 | 4 votes |
protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this); }
Example 8
Source File: FlurryEventLogger.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@Override public void startSession() { FlurryAgent.onStartSession(context); }
Example 9
Source File: AnalyticsActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this, FLURRY_API_KEY); }
Example 10
Source File: HomeActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this, AnalyticsActivity.FLURRY_API_KEY); }
Example 11
Source File: TourActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStart() { super.onStart(); FlurryAgent.onStartSession(this, AnalyticsActivity.FLURRY_API_KEY); }
Example 12
Source File: BaseActivity.java From Readily with MIT License | 4 votes |
@Override protected void onStart(){ super.onStart(); FlurryAgent.onStartSession(this, "6CNDCMYSWHYDFYDVKDMD"); }
Example 13
Source File: Analytics.java From aptoide-client with GNU General Public License v2.0 | 3 votes |
public static void onStart(android.app.Activity activity) { if (!ACTIVATE) return; FlurryAgent.onStartSession(activity, BuildConfig.FLURRY_KEY); }