Number of telephonyManager is manager in API level 26
val incomeNumber = intent?.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER)
I was trying to get incoming call's number this way. But, EXTRA_INCOMING_NUMBER is deprecated in API level 26. So, I was looking for alternative of EXTRA_INCOMING_NUMBER I found
this question. The
answer was beautiful also....