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
PIN: N/A
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!

Hi,

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.


Thanks,
Mishal Shah
Offline  
Old 07-03-2009, 09:43 AM   #2 (permalink)
Appleinator
 
Dubdub's Avatar
 
Join Date: Nov 2005
Location: New Hampshire
Model: App5
OS: AJBR549
PIN: Ask
Carrier: ATT & Verizon
Posts: 20,030
Post Thanks: 54
Thanked 782 Times in 742 Posts
Default

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

-->>Stinsonddog's Tip Site!

-->>Twitter


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

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.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.