android - EasyTracker with SherlockFragmentActivity -
i having hard time using google analytics easytracker in activities extend sherlockfragmentactivity. when try use easytracker.getinstance().activitystart(this);
in onstart, compiler doesn't complain app crashes with:
android.content.res.resources$notfoundexception: string resource id #0x7f0a0001
if try easytracker.getinstance().setcontext(this);
in method outside of onstart, same exception.
i having hard time understanding what's going on here, or whether possible @ use easytracker fragmentactivities.
thanks, igor
easytracker have following method.
easytracker.getinstance().setcontext(this);
and tutorial explained how start:
public void onstart() { super.onstart(); ... // rest of onstart() code. easytracker.getinstance().activitystart(this); // add method. }
according https://developers.google.com/analytics/devguides/collection/android/v2/
Comments
Post a Comment