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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:43:13+00:00 2026-05-30T06:43:13+00:00

I am trying to integrate Google Analytics in my Activities. As per the official

  • 0

I am trying to integrate Google Analytics in my Activities. As per the official documentation i used the “Easy Tracker” Library provided by Google and extended my activities from “TrackedActivity” The exact syntax i use is:

EasyTracker.getTracker().trackPageView("/myview"+viewname);

I am getting Null Pointer Exception randomly but Logcat shows “at Google Analytics” and surprisingly not at any place in my code. In some of my activities, I am calling system.gc() function in the onDestroy() method. (Could be the issue) Its supposed to be a singleton object I am worried if its getting garbage collected?

Needless to say as of now my app crashes. What worries me further is that even if i do a try catch or put exception checkers ie. check across null object. I am still worried that my activities might not get tracked even if the Crash is avoided.

Please Suggest.

  • 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-05-30T06:43:14+00:00Added an answer on May 30, 2026 at 6:43 am

    Make sure that you don’t invoke methods of EasyTracker before onStart() of your Activity. Also set ga_debug and ga_auto_activity_tracking to "true" to get debug statements and to track all activities of the application respectively.

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

Sidebar

Related Questions

I'm trying to integrate Google's JSON RPC library in my Grails project. The Maven
I am trying to integrate the code from this demo: http://code.google.com/p/gwt-spring-starter-app/ into my main
I'm trying to integrate Google Analytics into my Android project using the information on
I am trying to integrate google checkout with my current site. I am calculating
I'm trying to integrate google-code-prettify to my site in order to prettify Java code.
I'm trying to integrate the Google Federated Login with a premier apps account, but
I'm trying to integrate running Fitnesse tests from MSBuild im my nightly build on
I'm trying to integrate Google Earth into Google Maps, and I saw it was
I'm trying to integrate a Flex app with Google Checkout and code that runs
I am trying to integrate vote-up-buttons similar as in Reddit to Google Moderator .

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.