Android Open Source - AndroidPINProtectionExample Log






From Project

Back to project page AndroidPINProtectionExample.

License

The source code is released under:

GNU General Public License

If you think the Android project AndroidPINProtectionExample 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.example.pinexample.utilities;
//  w  w  w  . ja va  2 s  .  co  m
/**
 * Override of the android utility Log class
 * @author drakuwa
 *
 */
public class Log {

    private static boolean isEnabled = true;
    public static String TAG = "TestApp";

    public static void d(String tag, String message) {
        if (isEnabled) {
            android.util.Log.d(tag, message);

        }
    }

    public static void i(String tag, String message) {
        if (isEnabled) {
            android.util.Log.i(tag, message);
        }
    }

    public static void e(String tag, String message) {
        if (isEnabled) {
            android.util.Log.e(tag, message);
        }
    }

    public static void v(String tag, String message) {
        if (isEnabled) {
            android.util.Log.v(tag, message);
        }
    }

    public static void w(String tag, String message) {
        if (isEnabled) {
            android.util.Log.w(tag, message);
        }
    }
}




Java Source Code List

com.example.pinexample.fragments.CreatePinFragment.java
com.example.pinexample.fragments.TermsFragment.java
com.example.pinexample.fragments.WelcomeFragment.java
com.example.pinexample.ui.ChangePinActivity.java
com.example.pinexample.ui.MainFragmentActivity.java
com.example.pinexample.ui.PinActivity.java
com.example.pinexample.ui.StartActivity.java
com.example.pinexample.utilities.Log.java
com.example.pinexample.utilities.NumpadKeyboard.java
com.example.pinexample.utilities.Utilities.java