Android Open Source - notes Event Tracker

From Project

Back to project page notes.


The source code is released under:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 Sam Hocevar <> Everyone is permitted to copy and distribute verbatim or...

If you think the Android project notes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*w w w .  jav  a2s  . co  m*/
import com.iliakplv.notes.utils.AppLog;


public class EventTracker {

  private static volatile boolean enabled = false;

  public static boolean isEnabled() {
    return enabled;

  public static void setEnabled(boolean enabled) {
    EventTracker.enabled = enabled;

  public static void track(Event event, Serializable... args) {
    if (enabled) {
      AppLog.d("EVENT", event.toString());

Java Source Code List