miyachi3000
4/7/2014 - 7:25 AM

gistfile1.java

package com.example.callreciver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class CallReceiver extends BroadcastReceiver {
	public CallReceiver() {
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO: This method is called when the BroadcastReceiver is receiving
		// an Intent broadcast.
if (intent.getAction().equals("android.actio.NEW_OUTGOING_CALL")) {
	Toast.makeText(context,	 "get!	", Toast.LENGTH_LONG);
	
}
		
		throw new UnsupportedOperationException("Not yet implemented");
	}
}