How to detect incoming call with the help of Broadcast Receiver?
问题 I'm trying to recognize incoming calls in thru a broadcast receiver. I'm UNABLE to do so! Infact, I'm unable to 'trigger' the broadcast! Here's my code: activate.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getApplicationContext(),"Clicked",1).show(); final String BROADCAST_ACTION_NAME = ".BroadcastMM"; Intent intent = new Intent(); intent.setAction(BROADCAST_ACTION_NAME); sendBroadcast(intent); } } I dunno if this 'sendBroadcast' is ever