Back to project page UnlockHumor.
The source code is released under:
Apache License
If you think the Android project UnlockHumor 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 cn.chendihao; //from ww w . j a va 2 s .c om import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.widget.Toast; public class ScreenOnReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Intent newIntent = new Intent(context, UnlockHumorService.class); context.startService(newIntent); } }