protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate (savedInstanceState); SetContentView (Resource.Layout.activity_main); var application = (AnalyticsApplication)Application; mTracker = application.DefaultTracker; mImagePagerAdapter = new ImagePagerAdapter (this, SupportFragmentManager, ImageInfos.ToArray()); mViewPager = FindViewById<ViewPager> (Resource.Id.pager); mViewPager.Adapter = mImagePagerAdapter; mViewPager.AddOnPageChangeListener (new SimpleOnPageChangeListener (this)); SendScreenImageName (); }
// unit testing is not working yet. this my test bed public string Render() { var js = new Send(new Pageview()).Js(); var tracker = new Tracker("UA-XXXX-Y"); return tracker.Id; //tracker.Name; }