Android Open Source - UnlockHumor Screen On Receiver






From Project

Back to project page UnlockHumor.

License

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.

Java Source Code

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);
    
  }




}




Java Source Code List

cn.chendihao.AboutActivity.java
cn.chendihao.BootReceiver.java
cn.chendihao.ScreenOnReceiver.java
cn.chendihao.SettingActivity.java
cn.chendihao.UnlockHumorService.java