private String numberToNational(String number){
  final PhoneNumberUtil util=PhoneNumberUtil.getInstance();
  try {
    final Phonenumber.PhoneNumber phoneNumber=util.parse(number,mCountryCode);
    return String.valueOf(phoneNumber.getNationalNumber());
  }
 catch (  NumberParseException e) {
    return "";
  }
}

private String numberToNational ( String number ) { final PhoneNumberUtil util = PhoneNumberUtil . getInstance ( ) ; try { final Phonenumber . PhoneNumber phoneNumber = util . parse ( number , mCountryCode ) ; return String . valueOf ( phoneNumber . getNationalNumber ( ) ) ; } catch ( NumberParseException e ) { return "" ; } }
creates a national number from a number string
