PHONE_STATE与NEW_OUTGOING_CALL接收器行为异常求助
Hey there! I totally get how frustrating it is when you’ve already combed through tons of Stack Overflow threads, wrapped your head around CALL_STATES, and spent two days troubleshooting on your own—only to hit a wall with an issue that doesn’t match any past solutions you’ve found. Let’s try to work through this together.
First, here’s the BroadcastReceiver snippet you shared, formatted for clarity:
private BroadcastReceiver mCallBroadcastReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { Log.d("RECEIVER X: ", "IS UP AGAIN...."); String action = inte... } };
It looks like the code cuts off mid-line where you’re trying to get the intent action. To help diagnose this properly, could you share:
- The full implementation of your BroadcastReceiver (including how you’re registering it—whether in the manifest or dynamically)
- Exactly what’s going wrong: Is the receiver never triggering the log? Is it triggering but not handling call states correctly? Are there any error logs in Logcat related to this?
- Any specific call scenarios you’re testing that aren’t behaving as expected (e.g., incoming calls, outgoing calls, call disconnects)
The more details you can provide, the easier it’ll be to pinpoint what’s different about your setup compared to the standard solutions you’ve found.
内容的提问来源于stack exchange,提问作者sandhya sasane

