Android has this ability as part of Linkify functionality - basic pattern matching. It does a good job of parsing out phone numbers but messes up other numbers sometimes. You can always roll your own - it's trivial with regular expression.
On Jan 12, 11:49 pm, "Manjunatha M (ಮಂಜುನಾಥ ಎಂ)" <man...@gmail.com> wrote: > Hi all, > I am writing an application, which actually tries to insert a number into > the contacts. > Before inserting, I need to check for the validity of the phone number. > > Does android provide any API to pass this value and check if the phone > number is valid or not? > > Regards, > Manjunatha --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---