String number = Phone.getDevicePhoneNumber(boolean format);
获取手机号码
Parameters:
format
- True if you wish to retrieve the phone number in its formatted form, which varies from region to region.
Returns:
A String representing the device's phone number, or null if no phone number is currently available.
Throws:
ControlledAccessException
- thrown if the user is not granted to use the phone features.