BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
talk2mishal Offline
New Member
 
Posts: 13
Join Date: Jun 2008
Model: 8707
PIN: N/A
Carrier: Vodafone
Question How to validate Email address using any BlackBerry API? - 07-03-2009, 09:59 AM

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
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dubdub Offline
BBF Moderator
 
Dubdub's Avatar
 
Posts: 8,424
Join Date: Nov 2005
Location: New Hampshire
Model: 9000
OS: 4.6
PIN: Ask
Carrier: ATT
Default 07-03-2009, 09:43 AM

Moved to more appropriate Forum.
   
Reply With Quote
  (#3 (permalink)) Old
Dougsg38p Offline
CrackBerry Addict
 
Posts: 815
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-03-2009, 10:29 AM

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.
   
Reply With Quote
Reply


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-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.