I am having a hard time using Google Analytics EasyTracker in my Activities that extend SherlockFragmentActivity. When I try to use EasyTracker.getInstance().activityStart(this);
in onStart, the compiler doesn't complain but the app crashes with:
android.content.res.Resources$NotFoundException: String resource ID #0x7f0a0001
If I try to do EasyTracker.getInstance().setContext(this);
in any method outside of onStart, I get the same exception.
I am having a hard time understanding what's going on here, or whether it is possible at all to use EasyTracker with FragmentActivities.
Thanks, Igor
EasyTracker have the following method.
EasyTracker.getInstance().setContext(this);
and the tutorial explained how to start:
public void onStart() {
super.onStart();
... // The rest of your onStart() code.
EasyTracker.getInstance().activityStart(this); // Add this method.
}
According to https://developers.google.com/analytics/devguides/collection/android/v2/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.