Android Open Source - android-rotation-sensor-sample Log






From Project

Back to project page android-rotation-sensor-sample.

License

The source code is released under:

Copyright (c) 2013 Keith Platfoot Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...

If you think the Android project android-rotation-sensor-sample 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

package com.kviation.android.sample.orientation;
//  www  .j a v  a  2s.  co  m
public class Log {
  private static final String LOGTAG = "AttitudeIndicator";
  private static final boolean LOGV = false;

  public static void v(String msg, Object... args) {
    if (LOGV) {
      android.util.Log.v(LOGTAG, String.format(msg, args));
    }
  }

  public static void i(String msg, Object... args) {
    android.util.Log.i(LOGTAG, String.format(msg, args));
  }

  public static void w(String msg, Object... args) {
    android.util.Log.w(LOGTAG, String.format(msg, args));
  }

  public static void w(String msg, Throwable ex) {
    android.util.Log.w(LOGTAG, msg, ex);
  }

  public static void e(String msg) {
    android.util.Log.e(LOGTAG, msg);
  }

  public static void e(String msg, Throwable ex) {
    android.util.Log.e(LOGTAG, msg, ex);
  }
}




Java Source Code List

com.kviation.android.sample.orientation.AttitudeIndicator.java
com.kviation.android.sample.orientation.Log.java
com.kviation.android.sample.orientation.MainActivity.java
com.kviation.android.sample.orientation.Orientation.java