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.
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; import com.lukekorth.android_500px.services.WallpaperService; public class UserPresentReceiver extends BroadcastReceiver { @Override 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)); } } }