[Solved] @ validation for email in BlackBerry
Use EmailAddressEditField.. here is the way EmailAddressEditField email=new EmailAddressEditField(“Email Address: “, “”); String address =email.getText(); int at = address.indexOf(“@”); int len = address.length(); String host = address.substring(at + 1, len); int dot = host.lastIndexOf(‘.’); len = host.length(); if (at <= 0 || at > len – 6 && dot < 0 || dot >= len … Read more