Android Android.util.patterns.email_address Strange Behaviour
Today we experienced strange pattern behaviour. For instance, on tablet with 3.2 stock rom(previously 4.0.+) it works well. But on some other 3.2 tablets and 4.0 devices it doesn't
Solution 1:
Get the value of pattern using Pattern.pattern()
function from a device on which is works and make your own Pattern
object out of it. This way you won't have differences in implementations across devices. Same goes for Geocoder
, which didn't work for me on some devices.
Solution 2:
Our current solution, which worked:
[a-zA-Z0-9\\+\\.\\_\\%\\-\\+]{1,256}[\\@]{1}[a-zA-Z0-9][a-zA-Z0-9\\-]{0,64}([\\.]{1}[a-zA-Z0-9][a-zA-Z0-9\\-]{0,25})+
Post a Comment for "Android Android.util.patterns.email_address Strange Behaviour"