Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8495949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:43:01+00:00 2026-06-10T23:43:01+00:00

I want to integrate flurry analytics in my android application, it looks really simple.

  • 0

I want to integrate flurry analytics in my android application, it looks really simple. But i am not familiar with flurry and how it works.

Should i add the code :

public void onStart()
{
super.onStart();
FlurryAgent.onStartSession(sample, “APIXXXXXXXXXXXX”);

}

in every activity?

My application uses a lot of activities and i don’t really care for tracking which of the activities is used, only the number of installations, sessions and session length. But is the session length available if the flurry code is only added in the startup activity?

I know most of the information i want is available in play store already, but i want to try this to have an overview of applications on different platforms.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:43:02+00:00Added an answer on June 10, 2026 at 11:43 pm

    Here is a great answer : https://stackoverflow.com/a/8062568/1635817

    I suggest you to create a “BaseActivity” and to tell all your activities to extend it so you don’t have to copy/paste those lines in every activity class.

    Something like this :

    public class BaseActivity extends Activity
    {
        public void onStart()
        {
           super.onStart();
           FlurryAgent.onStartSession(this, "YOUR_KEY");
           // your code
        }
    
        public void onStop()
        {
           super.onStop();
           FlurryAgent.onEndSession(this);
           // your code
        }
    }
    

    In response to @conor comment :

    From Flurry’s documentation

    So long as there is any Context that has called
    onStartSession(Context, String) but not onEndSession(Context), the
    session will be continued. Also, if a new Context calls
    onStartSession(Context, String) within 10 seconds (the default session
    timeout length) of the last Context calling onEndSession, then the
    session will be resumed, instead of a new session being created.
    Session length, usage frequency, events and errors will continue to be
    tracked as part of the same session. This ensures that as a user
    transitions from one Activity to another in your application they will
    not have a separate session tracked for each Activity, but will have a
    single session that spans many activities.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to integrate bar-code scannerin my Android application. I attempted to add the
I want to integrate twitter in my android app. I have used twitter4j,jtwitter but
I want to integrate my Android application with LinkedIn and post a message. Can
I want to integrate Google Reader in my android application. Please help me on
We want to integrate EGIT plugin to our current eclipse android project. But could
I want to integrate Flurry into my Android app. My app supports Android 1.5
I want to integrate facebook login into my web application developed using Spring MVC.
i want integrate admob ads to my palm pre application.can you please suggest me
I want to integrate a report writer in our web application. Right now ,
I have an application where i want to integrate multiple buzz accounts to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.