Back to project page HastingsMobileAndroid.
The source code is released under:
Apache License
If you think the Android project HastingsMobileAndroid 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 edu.hastings.hastingscollege.navdrawerfragments; //ww w . j a va 2 s . com import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.google.android.gms.analytics.HitBuilders; import com.google.android.gms.analytics.Tracker; import edu.hastings.hastingscollege.R; import edu.hastings.hastingscollege.googleanalytics.MyApplication; public class FragmentAbout extends Fragment { public static final String TAG = "FragmentAbout"; public Tracker tracker; public static Fragment newInstance(Context context) { return new FragmentAbout(); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.tracker = ((MyApplication) getActivity().getApplication()).getTracker(MyApplication.TrackerName.APP_TRACKER); this.tracker.setScreenName("About"); this.tracker.send(new HitBuilders.AppViewBuilder().build()); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) { View rootView = (ViewGroup) inflater.inflate(R.layout.about, null); return rootView; } }