SoFunction
Updated on 2025-04-09

Android sample program to get current mobile phone number


/*
* Get the current mobile phone number
         */
        public String getLocalNumber() {
                TelephonyManager tManager = (TelephonyManager) this
                                .getSystemService(TELEPHONY_SERVICE);
                String number = tManager.getLine1Number();
;                return number;
        }