🌐
Narkive
community.openmoko.narkive.com › sf3r68wu › phonelog-missed-call-null-name-and-number
Phonelog: missed call "NULL" name and number
NULL means hidden number. BTW, phonelog seems quite buggy as to received/dialed/missed call registration. Since sometimes some of these show up with a day or so of delay, could it be an opimd bug or a phonelog bug? Rui ... Post by Niels Heyvaert - Why is the number/name equal to "NULL"?
🌐
Google Groups
groups.google.com › g › automate-user › c › A2Zvi0SPFkE
Pie: Call Incoming returns null phone number
Since upgrading my Verizon Pixel 2 XL to Android Pie, the Call Incoming block has begun to return null for the 'Caller phone number' output field. I don't know if it's related, but I have the Caller ID and Spam filter features enabled in the Android dialer app. The block's Subscription ID option is unspecified. Missed a few calls when a flow I'm running thought everyone was an unknown caller!
Discussions

Receiving "call from null" from Android System - Google Pixel Community
Due to the latest device launch, we expect to receive higher contact volume than normal. To check if your question is already answered, go to the Pixel Phone Help Center More on support.google.com
🌐 support.google.com
December 26, 2024
Android incoming or outgoing call phone number is null - Stack Overflow
I want to retrieve the incoming/outgoing call's phone number, but sometimes the delivered phone number is null. I'm unable to reproduce it, but my clients are reporting that sometimes it's not work... More on stackoverflow.com
🌐 stackoverflow.com
broadcastreceiver - Incoming number is null after ending the call in android PIE 9 - Stack Overflow
I have been working on this problem since weeks. I am making an app which picks the incoming number and shows it in a dialog box after the call is ended. Everything is working fine below android PI... More on stackoverflow.com
🌐 stackoverflow.com
Null Incoming Call - Apple Community
Each caller is unknown Everytime I get a call, even from friends that are in my contacts, I get a notification that it is a unknown caller. I've had this issue for years now and it's really annoying when I miss important calls. Every call is a supposed 'Unknown Caller' even though my contacts ... More on discussions.apple.com
🌐 discussions.apple.com
🌐
Cisco Community
community.cisco.com › t5 › ip-telephony-and-phones › caller-id-shows-quot-null-quot-on-intermitant-inbound-calls › td-p › 2661790
Caller ID shows "NULL" on intermitant inbound calls - Cisco Community
March 18, 2015 - I have a small percentage of inbound calls showing a caller ID of "NULL". Can someone explain why this is shown as the caller ID instead of "Unknown Number"? I have tried to duplicate the issue by calling in from the PSTN with a blocked number, but the phone display still shows "Unknown Number" ...
🌐
Ooma Forums
forums.ooma.com › viewtopic.php
Callers with no {empty, null} phone number.... -Ooma Forums
Callers with no {empty, null} phone number.... ... Hey dev team. Here is a new one for you. I received a call today (2/28) that got through the call screening filters (privacy, blacklist, etc). The callerid shows as NONE in my call log. I am unable to add it to my blacklist because the number (NONE) is in an invalid format.
🌐
Google Support
support.google.com › pixelphone › thread › 315319187 › receiving-call-from-null-from-android-system
Receiving "call from null" from Android System - Google Pixel Community
December 26, 2024 - Due to the latest device launch, we expect to receive higher contact volume than normal. To check if your question is already answered, go to the Pixel Phone Help Center
🌐
Stack Overflow
stackoverflow.com › questions › 45541312 › android-incoming-or-outgoing-call-phone-number-is-null
Android incoming or outgoing call phone number is null - Stack Overflow
<receiver android:name=".broadcast.IncomingCallReceiver"> <intent-filter> <action android:name="android.intent.action.PHONE_STATE" /> </intent-filter> </receiver> <receiver android:name=".broadcast.OutgoingCallReceiver"> <intent-filter> <action android:name="android.intent.action.NEW_OUTGOING_CALL" /> </intent-filter> </receiver> ... <service android:name=".broadcast.IncomingCallReceiver$PhoneService" /> <service android:name=".broadcast.OutgoingCallReceiver$PhoneService" /> I might think that the intent or the intent's bundle is empty. As you can see, I'm making a check before if intent or bundle is different than null and after that setting the data to the newly created intent.
🌐
Ask Me Fast
askmefast.com › What_does_null_mean_in_call_log_history-qna9333628.html
What does null mean in call log history? - There is missed calla and null what does null refer to? :: Ask Me Fast
How to check my cell phone celkon c349* call history just diald call missed call revived call i have check but there are no any number i have tray ... ... When i check the call log in nokia asha 305 i can find only `all calls` history only..from where i will get `missed cals`, `received cals` separately
Top answer
1 of 2
8

There are two different "types" of phone state receivers, receivers that have Manifest.permission.READ_CALL_LOG permission and receivers that don't.

If a receiver doesn't have the Manifest.permission.READ_CALL_LOG permission, it will be called for all state changed once, without the EXTRA_INCOMING_NUMBER extra.

If a receiver does have that above permission, like in your case, it will be called for every state changed twice, one without the EXTRA_INCOMING_NUMBER permission, and another time with it.

Since you have this code:

if (lastState == state) {
    return;
}

in your onCallStateChanged method, you're basically skipping the second call, and thus losing the EXTRA_INCOMING_NUMBER info.

If you're sure you have the READ_CALL_LOG permission, you can try skipping the duplicated receiver call without that extra completely (however note that there's a difference between getting a "null" value for that extra which means a private number call, and not getting that extra at all), like so:

String stateStr = intent.getExtras().getString(TelephonyManager.EXTRA_STATE);
if (!intent.getExtras().containsKey(TelephonyManager.EXTRA_INCOMING_NUMBER)) {
    Log.i("Call receiver", "skipping intent=" + intent + ", extras=" + intent.getExtras() + " - no number was supplied");
    return;
}
String number = intent.getExtras().getString(TelephonyManager.EXTRA_INCOMING_NUMBER);

See the official docs at: https://developer.android.com/reference/android/telephony/TelephonyManager#ACTION_PHONE_STATE_CHANGED

2 of 2
0

In Android 9, the number is included in intent extras under key incoming_number

🌐
Apple Community
discussions.apple.com › thread › 252311080
Null Incoming Call - Apple Community
I had an incoming call that showed my contacts name with (null) audio. What does that mean? I ignored that call. ... Silence Unknown Calls also block visible numbers When I turn on Silence Unknown calls in the settings. It automatically silence numbers that are NOT unknown.
Find elsewhere
🌐
Reddit
reddit.com › r/sysadmin › port a cell number to null?
r/sysadmin on Reddit: Port a cell number to null?
May 29, 2018 -

I've been thinking about this, and figured it might be a decent discussion on this sub. I'm always "connected" to people all the time, the past year or so I have made good habit of using "do not disturb" on my phone. I'm hitting a some sort of a point where with work, friends, etc, I just for the love of god what to "unplug" and have 0 way of contacting me. I don't even want to be able to check if you texted me, I don't even want to see the missed calls.

I used to have another number on our company plan. But Jesus H Christ, telemarkets and scam callers still find it. I want to be left the fuck alone sometimes.

First thought, obvious, chuck your phone. I've done this, but honestly, sometimes I just want to browse reddit, read whatever, steam some music, something to decompress, and inevitably I see the missed calls and texts. I know it's there, so it's impossible to ignore.

I'm hoping some of you can sympathize with my perspective, and there's no malcontent with it. I just need to be left the fuck alone sometimes but I also want an internet connection.... Nothing is better than driving way out into nowhere just blasting some music on Spotify and not thinking about shit, until you get a fucking call.

I really wish there was some sort of firewall service I could port my number to. I wish I could have "push 1 for this, push 2 for that" before my phone even sees a call. I wish I could actually go offline on my own terms.

I'm just going to leave that as that. I really would like to see what everyone else has to say. I would like to see ideas how to fix this problem. In fact, I bet some business plan could be made. Seriously, if someone charged $X/Mo and I could just not have texts and phone calls come to my phone for X period of time, holy shit, I would buy that instantly.

How do you all stay sane while also wanting to reap the benefits of being online?

Edit: basically, ideally, I just want a number that can't be callled or texted by anyone. How can I do this?

🌐
Reddit
reddit.com › r/androidquestions › never ending, non interactive, "call from null"
r/AndroidQuestions on Reddit: Never ending, non interactive, "call from null"
November 29, 2024 -

Sometime last week my phone started receiving this "call from null: answering this will end your current call" notification every single second of the day, it literally doesn't go away.

Can't answer it, can't decline it, can't change the volume while the "call" is ongoing, can't listen to music or videos because the calling notification overrides everything else.

Haven't downloaded anything in a while, too, just to put it out there.

Those last days it started to "disappear" for a couple hours per day, but it always triggers after someone calls me, and sometimes at random as well.

🌐
Stack Overflow
stackoverflow.com › questions › 12430704 › why-an-incoming-call-number-is-null-in-intent-extra-telephonymanager-extra-incom
android - Why an incoming call number is null in intent extra TelephonyManager.EXTRA_INCOMING_NUMBER? - Stack Overflow
It mainly works just fine getting phone number from the intent, but sometimes, rather randomly, it fails on some phones. It looks like a some firmware bug. Does anybody experiences the same issue and know what the reason is actually, how to cope with it? ... I have used something like... And I had no problems with using of it... IntentService = new Intent(context, PlayService.class).setAction("outgoing_call"); IntentService.putExtra("phone_number",intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER)); context.startService(IntentService);
Top answer
1 of 1
5

You can read through the source of TelephonyRegistry: Link

/** ... this class provides a centralized place that applications can register and be called back from. */

The broadcast for an incoming call is sent from this method:

Copyprivate void broadcastCallStateChanged(int state, String incomingNumber) {
    ....
    ....
    Intent intent = new Intent(TelephonyManager.ACTION_PHONE_STATE_CHANGED);
    intent.putExtra(PhoneConstants.STATE_KEY,
            DefaultPhoneNotifier.convertCallState(state).toString());

    // If `incomingNumber` is empty, the key 
    // `TelephonyManager.EXTRA_INCOMING_NUMBER` will not be present
    // in the attached Bundle
    if (!TextUtils.isEmpty(incomingNumber)) {
        intent.putExtra(TelephonyManager.EXTRA_INCOMING_NUMBER, incomingNumber);
    }
    mContext.sendBroadcastAsUser(intent, UserHandle.ALL,
            android.Manifest.permission.READ_PHONE_STATE);
}

So, you'll receive a value corresponding to TelephonyManager.EXTRA_INCOMING_NUMBER iff incomingNumber is not empty.

incomingNumber comes from DefaultPhoneNotifier#notifyPhoneState(Phone): Link

Copy@Override
public void notifyPhoneState(Phone sender) {
    Call ringingCall = sender.getRingingCall();
    String incomingNumber = "";
    if (ringingCall != null && ringingCall.getEarliestConnection() != null){

        // Here
        incomingNumber = ringingCall.getEarliestConnection().getAddress();

    }
    try {
        mRegistry.notifyCallState(convertCallState(sender.getState()), incomingNumber);
    } catch (RemoteException ex) {
        // system process is dead
    }
}

ringingCall.getEarliestConnection().getAddress() calls the getAddress() method from one of the classes that extend com.android.internal.telephony.Connection (GsmConnection, CdmaConnection..).

If you look at the constructor of GsmConnection, you can see that there are variables assigned for number AND caller name. From what I can tell, as a receiver, you only receive the number - if one is available. So, in case of an empty string (when a caller id is blocked/withheld), the key TelephonyManager.EXTRA_INCOMING_NUMBER will not be present in the Bundle you receive.

You did not mention as to why you need this information. If you are trying to show a personalized message by comparing String values, I suggest you do the following:

CopyString phoneNumber = extras.getString(TelephonyManager.EXTRA_INCOMING_NUMBER,
                              "Personalized message for a Blocked Call");

I am not sure if this will be an adequate test, but to simulate a blocked caller id, you can take a look at this question: Link.

🌐
Zendesk help
support.zendesk.com › hc › en-us › articles › 4408830322714-Why-am-I-seeing-calls-with-a-NULL-call-group-on-my-reports
Why am I seeing calls with a NULL call group on my reports? – Zendesk help
... With a Talk line: The group assigned to an outbound call is based on the group that is set for that line to route inbound calls. If there is no group routing selected for a specific Talk number, the call group is NULL on any outbound calls.
🌐
Apple Community
discussions.apple.com › thread › 253811200
(Null) At the end of the contact name. - Apple Community
April 12, 2022 - Contact name “And 2 others” on Incoming Caller ID I’ve confirmed that the contacts who are showing this on incoming caller ID do not have any other linked accounts in their profile and their numbers are no associated with anyone else in my contacts. Is there another resolve for this issue? 10659 6 ... I realised that if I copy and paste the name that is when the (null) appears.
🌐
Stack Overflow
stackoverflow.com › questions › 15568836 › accessing-the-number-of-caller-when-a-call-got-missed-in-android
Accessing the number of caller when a call got missed in android - Stack Overflow
public void SendSMStoMissedCall() { String[] strFields = {android.provider.CallLog.Calls.CACHED_NAME, android.provider.CallLog.Calls.NUMBER,android.provider.CallLog.Calls.DATE, android.provider.CallLog.Calls.TYPE}; String strOrder = android.provider.CallLog.Calls.DATE + " DESC"; Cursor mCallCursor = getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,strFields, null, null, strOrder); if (mCallCursor.moveToFirst()) { do { boolean missed = mCallCursor.getInt(mCallCursor.getColumnIndex(CallLog.Calls.TYPE)) == CallLog.Calls.MISSED_TYPE; if (missed) { String name = mCallCursor.get
🌐
Oreate AI
oreateai.com › blog › understanding-null-in-call-contexts-what-it-means-and-why-it-matters › c33fad852dcc28912b648bc97ea8e840
Understanding 'Null' in Call Contexts: What It Means and Why It Matters - Oreate AI Blog
December 30, 2025 - In the simplest terms, 'null' indicates that there is no value assigned to something—in this case, perhaps a caller ID or an incoming call's information. Imagine you’re waiting for an important call.