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 7908583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T12:00:52+00:00 2026-06-03T12:00:52+00:00

On a current project I’m using a helper class to make API calls, which

  • 0

On a current project I’m using a “helper” class to make API calls, which does not extend Activity. This helper class is called from an activity, where a Flurry session is started and stopped as suggested. Is it possible to make Flurry calls right from this helper class? I want to say yes, because the Flurry session already started as a part of the current activity, but I’m not sure.

I’d rather log the Flurry tags right when the result of the API call is received, rather than checking the result message again in the Activity, just so I don’t have to duplicate some of the logic.

Will this work? Is there a better approach?

  • 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-03T12:00:53+00:00Added an answer on June 3, 2026 at 12:00 pm

    EDITED. SEE BELOW.

    Thanks Jordi. I ended up using your suggestion to pass the Activity into the helper class constructor, set a local activity variable, and create a method to log the Flurry tag using the activity var.

    /**
     * Logs the Flurry tag using the act that was passed into the constructor
     */
    
    // EDITED - DON'T USE THIS ANYMORE
    
    private void logFlurryTag(String s) {
    
        FlurryAgent.onStartSession(act, "XXXXXXXXXXXXXXXXXXXXX");
        FlurryAgent.logEvent(s);
        FlurryAgent.onEndSession(act);
    }
    

    I believe this should work correctly, but I haven’t waited to see if the Flurry tags have started coming in yet.

    *** 5-9-2012 ***

    Per spacemanaki’s recommendation I decided to rework my logic to include logging the Flurry events in the activities rather than the helper classes. It really wasn’t too much extra work, and I’ve verified the events are being reported. It also feels safer than starting and stopping the flurry session all in one method.

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

Sidebar

Related Questions

Our current project does not use Hibernate (for various reasons) and we are using
Current project, broke head over this problem: Client Repository: public class ClientRepository { //
In our current project I am using a generic interface iService which is inherited
For my current project in codeignitor I needed to make user profile like this
My current project involves using LDAP (Active Directory) and I'm using issue tracking for
On my current project, we've been using Struts 1 for the last few years,
In my current project we are testing our ASP.NET GUI using WatiN and Mbunit
My current project has a development web server and live web server. Developers make
My current project for work involves developing a SharePoint 2007 WebPart which will be
My current project is in rails 2.3.5 which uses restful authentication. I am moving

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.