Android Open Source - camera-through-wallpaper Boot Completed Receiver






From Project

Back to project page camera-through-wallpaper.

License

The source code is released under:

Apache License

If you think the Android project camera-through-wallpaper 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.yaji.viewfinder;
/*  www  .  j  av  a 2  s.  c o  m*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.SystemClock;
import android.util.Log;

public class BootCompletedReceiver extends BroadcastReceiver {
    private static final String LOG_TAG = "yaji";
    private static boolean mReceived = false;

    @Override
    public void onReceive(Context context, Intent i) {
        if (Intent.ACTION_BOOT_COMPLETED.equals(i.getAction())) {
            mReceived = true;
            long bootTime = SystemClock.elapsedRealtime();
            Log.d(LOG_TAG, "onReceive(), bootTime:" + bootTime);
        }
    }

    /*
     * Returns true if we have already received BOOT_COMPLETED intent.
     */
    public static boolean isReceived() {
        return mReceived;
    }
}




Java Source Code List

com.yaji.viewfinder.BootCompletedReceiver.java
com.yaji.viewfinder.CameraHideMethods.java
com.yaji.viewfinder.CameraUtil.java
com.yaji.viewfinder.ImageUtil.java
com.yaji.viewfinder.QRRecognizer.java
com.yaji.viewfinder.RGBLuminanceSource.java
com.yaji.viewfinder.WalkAroundSettings.java
com.yaji.viewfinder.WalkAroundWallpaper.java