Back to project page android-quiz-php.
The source code is released under:
Copyright (c) 2014, Fabricio Bedeschi All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are me...
If you think the Android project android-quiz-php listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.quiz.php; /* ww w . jav a 2 s . c om*/ import android.app.Application; import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.HitBuilders; import com.google.android.gms.analytics.Tracker; /** * Created by fabricio on 5/30/14. */ public class QuizApp extends Application { synchronized Tracker getTracker() { GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); return analytics.newTracker(R.xml.ga_tracker); } public void screenView(String screenName) { Tracker t = getTracker(); t.setScreenName(screenName); // Send a screen view. t.send(new HitBuilders.AppViewBuilder().build()); } }