Java Code Examples for com.flurry.android.FlurryAgent#onEndSession()
The following examples show how to use
com.flurry.android.FlurryAgent#onEndSession() .
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: 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 2
Source File: LetvBaseActivity.java From letv with Apache License 2.0 | 5 votes |
protected void onStop() { super.onStop(); if (hasApplyPermissions()) { if (this.mRedPacketEntry != null) { this.mRedPacketEntry.stop(); } FlurryAgent.onEndSession(this); } }
Example 3
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 4
Source File: HomeActivity.java From zidoorecorder with Apache License 2.0 | 5 votes |
@Override protected void onStop() { super.onStop(); try { FlurryAgent.onEndSession(this); } catch (Exception e) { // TODO: handle exception } }
Example 5
Source File: Analytics.java From ExtensionsPack with MIT License | 5 votes |
public static void stop(Context ctx) { Log.d(tag, "Stopping Flurry"); FlurryAgent.onEndSession(ctx); Log.d(tag, "Analytics stopped"); }
Example 6
Source File: SplashActivity.java From letv with Apache License 2.0 | 4 votes |
protected void onStop() { super.onStop(); FlurryAgent.onEndSession(this); }
Example 7
Source File: FlurryEventLogger.java From aptoide-client-v8 with GNU General Public License v3.0 | 4 votes |
@Override public void endSession() { FlurryAgent.onEndSession(context); }
Example 8
Source File: AnalyticsActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStop() { super.onStop(); FlurryAgent.onEndSession(this); }
Example 9
Source File: HomeActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStop() { super.onStop(); FlurryAgent.onEndSession(this); }
Example 10
Source File: TourActivity.java From vocefiscal-android with Apache License 2.0 | 4 votes |
@Override protected void onStop() { super.onStop(); FlurryAgent.onEndSession(this); }
Example 11
Source File: BaseActivity.java From Readily with MIT License | 4 votes |
@Override protected void onStop(){ super.onStop(); FlurryAgent.onEndSession(this); }
Example 12
Source File: MainActivity.java From NYU-BusTracker-Android with Apache License 2.0 | 4 votes |
@Override public void onStop() { super.onStop(); // if (BuildConfig.DEBUG) Log.v("General Debugging", "onStop!"); FlurryAgent.onEndSession(this); }
Example 13
Source File: Analytics.java From aptoide-client with GNU General Public License v2.0 | 3 votes |
public static void onStop(android.app.Activity activity) { if (!ACTIVATE) return; FlurryAgent.onEndSession(activity); }
Example 14
Source File: ActPlayer.java From freemp with Apache License 2.0 | 3 votes |
@Override public void onDestroy() { // Unbind Service unbindService(mConnection); FlurryAgent.onEndSession(activity); super.onDestroy(); }
Example 15
Source File: ActPlaylist.java From freemp with Apache License 2.0 | 3 votes |
@Override public void onDestroy() { FlurryAgent.onEndSession(activity); super.onDestroy(); }