Back to project page RingMyPhoneAndroid.
The source code is released under:
MIT License
If you think the Android project RingMyPhoneAndroid 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.darkrockstudios.apps.ringmyphone; //w ww .jav a2 s . c om import android.content.Context; import android.content.Intent; import android.support.v4.content.WakefulBroadcastReceiver; public class StopRingingReceiver extends WakefulBroadcastReceiver { private static final String TAG = StopRingingReceiver.class.getSimpleName(); public StopRingingReceiver() { } @Override public void onReceive( final Context context, final Intent intent ) { if( intent != null && RingerService.ACTION_STOP_RINGING.equals( intent.getAction() ) ) { Intent serviceIntent = new Intent( context, RingerService.class ); serviceIntent.setAction( RingerService.ACTION_STOP_RINGING ); startWakefulService( context, serviceIntent ); } } }