Android Open Source - AerisAndroidLibrary Screen On Receiver

From Project

Back to project page AerisAndroidLibrary.


The source code is released under:

Apache License

If you think the Android project AerisAndroidLibrary 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.service;
/*from   www. j a va  2  s  . c  o m*/
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.hamweather.aeris.logging.Logger;

public class ScreenOnReceiver extends BroadcastReceiver {

  private static final String TAG = "AERIS.ScreenOnReceiver";

   * (non-Javadoc)
   * @see android.content.BroadcastReceiver#onReceive(android.content.Context,
   * android.content.Intent)
  public void onReceive(Context context, Intent intent) {

    // if (SystemClock.elapsedRealtime()
    // - PrefManager.getLongPreference(context,
    // PrefManager.NTF_TIMESTAMP_KEY) > 1000 * 60 * 5) {
    Logger.i(TAG, "Screen on intent received");
    Intent newIntent = new Intent(context.getApplicationContext(),

    // }

Java Source Code List