我目前正在导出联系人内容提供程序中存储的一些联系人的电话号码,我想知道是否存在获取电话号码的“格式化”字符串,例如,而不是 xxx-xxx-xxxx => xxxxxxxxxx。以获得更好的数据库一致性。
使用正则表达式会很容易,但我想知道是否已经存在为此目的的东西,作为文档。提到:
public static final String NUMBER - Since: API Level 5
The phone number as the user **entered it**.
Type: TEXT - Constant Value: "number"
让我认为某处存在标准格式......?提前致谢 !