Back to project page SMSMorsify-Android.
The source code is released under:
GNU General Public License
If you think the Android project SMSMorsify-Android 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.savanto.android.smsmorsify; /* www.j a v a 2s.c om*/ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Vibrator; /** * @author savanto * */ public class ScreenOnReceiver extends BroadcastReceiver { /* (non-Javadoc) * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent) */ @Override public void onReceive(Context context, Intent intent) { // Cancel the vibrator. ((Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE)).cancel(); // Stop MorseService context.stopService(new Intent(context, MorseService.class)); } }