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.
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) */ @Override 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(), NotificationService.class); context.startService(newIntent); // } } }