android gets the current phone number sample application

  • 2020-05-19 05:51:32
  • OfStack


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


Related articles: