@@ -0,0 +1,1439 @@
+package selva.web;%0A%0Aimport android.annotation.SuppressLint;%0Aimport android.app.AlertDialog;%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.DialogInterface;%0Aimport android.content.Intent;%0Aimport android.telephony.TelephonyManager;%0Aimport android.util.Log;%0Aimport android.view.Gravity;%0Aimport android.view.Window;%0Aimport android.view.WindowManager;%0Aimport android.widget.TextView;%0Aimport android.widget.Toast;%0A  %0A@SuppressLint(%22NewApi%22)%0Apublic class IncomingBroadcastReceiver extends BroadcastReceiver %7B  %0A  %0A    @SuppressLint(%22NewApi%22)%0A%09@Override  %0A    public void onReceive(Context context, Intent intent) %7B  %0A  %0A        Log.d(%22IncomingBroadcastReceiver: onReceive: %22, %22flag1%22);  %0A  %0A        String state = intent.getStringExtra(TelephonyManager.EXTRA_STATE);  %0A        Log.d(%22IncomingBroadcastReceiver: onReceive: %22, state);  %0A        if (state.equals(TelephonyManager.EXTRA_STATE_RINGING)  %0A                %7C%7C state.equals(TelephonyManager.EXTRA_STATE_OFFHOOK)) %7B  %0A  %0A            Log.d(%22Ringing%22, %22Phone is ringing%22); %0A            %0A          %0A %0A            Intent i = new Intent(context, IncomingCallActivity.class);  %0A            i.putExtras(intent);  %0A            i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  %0A            i.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);  %0A//           / Wait.oneSec();  %0A            context.startActivity(i);  %0A  %0A            %0A        %7D  %0A  %0A    %7D  %0A  %0A%7D%0A

Create incomingcallService.java