BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 07-03-2009, 08:59 AM   #1 (permalink)
New Member
Join Date: Jun 2008
Model: 8707
Carrier: Vodafone
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question How to validate Email address using any BlackBerry API?

Please Login to Remove!


I have made code in which i am sharing my data to the address book contacts,in which the contacts which having the email address stored.

Now i want to put validation on the email address.

For example 1 contact having the email as : [email address] .

How should i check that the email which is mentioned here is valid ? coz in this case so many possibility will come.

please let me know in RIM api any interface or class available which satisfy my need of validation of Email address.?

Please give any code or useful link or any Api ,which would be appreciated.

Mishal Shah
Old 07-03-2009, 10:43 AM   #2 (permalink)
Dubdub's Avatar
Join Date: Nov 2005
Location: New Hampshire
Model: App6+
PIN: Ask
Carrier: ATT & Verizon
Posts: 20,038
Post Thanks: 52
Thanked 777 Times in 737 Posts

Moved to more appropriate Forum.
-->>BB FAQ

-->>Stinsonddog's Tip Site!


If someone helps, tell them by clicking the Thanks button.!!
Old 07-03-2009, 11:29 AM   #3 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

There isn't anything in the BB API's (AFAIK), but this is a simple thing to implem,ent, Just check for invalid characters and confirm that the '@' and '.' chars are there.

If you are filtering actual input, use EmailAddressEditField.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.