code: public void setNumber(String number) {
          try {
              String iso = null;
              if (mSelectedCountry != null) {
                  iso = mSelectedCountry.getIso();
              }
              Phonenumber.PhoneNumber phoneNumber = mPhoneUtil.parse(number, iso);
  			
              int countryIdx = mCountries.indexOfIso(mPhoneUtil.getRegionCodeForNumber(phoneNumber));
  			mSelectedCountry = mCountries.get(countryIdx);		
              mCountrySpinner.setSelection(countryIdx);
  			
  			
              mPhoneEdit.setText(mPhoneUtil.format(phoneNumber, PhoneNumberUtil.PhoneNumberFormat.NATIONAL));
          } catch (NumberParseException ignored) {
          }
      }
docs: Set Number
  
  @param number E.164 format or national format