Android TelephonyManager may not return the number in all cases. He may not return the number if the Operator has not installed it. You will need to create a verification script in which you ask the user to enter a number and then send an SMS to confirm.
Azlam source share