Android Open Source - photo-paper User Present Receiver

From Project

Back to project page photo-paper.


The source code is released under:

MIT License

If you think the Android project photo-paper 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.lukekorth.android_500px.receivers;
//from  w  ww.  j  a  v  a 2s  .  c o  m
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.lukekorth.android_500px.helpers.Utils;

public class UserPresentReceiver extends BroadcastReceiver {

    public void onReceive(Context context, Intent intent) {
        if (Utils.shouldUpdateWallpaper(context)) {
            context.startService(new Intent(context, WallpaperService.class)
                .putExtra(WallpaperService.USER_PRESENT_RECEIVER_KEY, true));


Java Source Code List