It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
如何在Android中将电话号码转换为(581)-111-1234或任何电话格式,例如5811111234?

任何想法?

最佳答案

使用PhoneNumberUtils

        PhoneNumberUtils.stripSeparators(phoneNumber);
        PhoneNumberUtils.toaFromString(phoneNumber);

08-06 11:17