Skip to content Skip to sidebar Skip to footer

The Email Address Is Badly Formatted Firebase

hi i am working on a android project where i am using firebase as back-end and i am building a signup and login form . When ever i sign up the code is working well and . When i try

Solution 1:

Your code to set email is incorrect. You are setting email to the value of the EditText for password.

In method CheckLogin(), change:

Stringemail= mloginPassField.getText().toString().trim();

to:

Stringemail= mLoginEmailField .getText().toString().trim();

Solution 2:

Simply use Edittext named as Email and Password you need not do anything. the error comes up only if you use plaintext for both...

Solution 3:

I faced this problem recently, possible solutions are :

  1. Check the inputType of your EditText Field.

ADD this attribute to your EditText

            android:inputType="textEmailAddress"
  1. In Activity class, it should look like if u are using TextInputLayout instead of editText

            mDisplayName=(TextInputLayout) findViewById(R.id.reg_name);
            mDisplayEmail=(TextInputLayout)findViewById(R.id.reg_email);
            mDisplayPassword=(TextInputLayout)findViewById(R.id.reg_password);
    
    
            Stringname= mDisplayName.getEditText().getText().toString();
            Stringemail= mDisplayEmail.getEditText().getText().toString();
            Stringpassword= mDisplayPassword.getEditText().getText().toString();`
    

Solution 4:

The error popped for me due to my silly action of using "tab" to go to the next text field. Don't use "tab" for it, instead use your mouse to move to the next text field. Worked for me.

Solution 5:

Remove whitespaces from email text it worked for me. by using trim() method you can remove spaces.

Post a Comment for "The Email Address Is Badly Formatted Firebase"