Forum Xamarin Xamarin.Android

Xamarin validate email

DylanMcClureDylanMcClure USMember ✭✭
edited July 2015 in Xamarin.Android

For Android development with Java there is a way to validate emails in an EditText - like so:

    Boolean isValidEmail(String email) {
            return android.util.Patterns.EMAIL_ADDRESS.matcher(email).matches();

Is there a way to do this in C# in Xamarin? Or, rather, do I need to check it myself (which isn't that hard, honestly)?



  • DylanMcClureDylanMcClure USMember ✭✭
    edited July 2015

    Well, I was just playing around with it.


    Thanks for making everything capitalized C#.

    I'm not sure if you can delete these, but I will just leave this here regardless, as it may help someone, I guess.

  • DilipPadilDilipPadil USMember

    I dnt get it ,how your fetching id of email edit text?
    I'm getting following error . Could you please help me out.

Sign In or Register to comment.