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; //w ww. j a v a2s .c om 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.ApiService; public class WifiReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if (Utils.isConnectedToWifi(context) && Utils.needMorePhotos(context)) { context.startService(new Intent(context, ApiService.class)); } } }