I am trying to connect Firebase to my Android application using Firebase authentication via email/password. I am getting these errors:
2:16 PM Emulator: FramebufferData::restore: warning: a texture is deleted without unbinding FBO
2:16 PM Emulator: FramebufferData::restore: warning: a text
2:16 PM Emulator: ure is deleted without unbinding FBO
Can you let me know what these mean?
This is my code :
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
private Button buttonRegsiter;
private EditText editTextEmail;
private EditText editTextPassword;
private ProgressDialog progressDialog;
private FirebaseAuth firebaseAuth;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
System.out.print("In main");
firebaseAuth = FirebaseAuth.getInstance();
progressDialog = new ProgressDialog(this);
buttonRegsiter = (Button) findViewById(R.id.registerUserButton);
editTextEmail = (EditText) findViewById(R.id.editTextEmail);
editTextPassword = (EditText) findViewById(R.id.editTextpassword);
buttonRegsiter.setOnClickListener(this);
}
private void registerUser(){
String email = editTextEmail.getText().toString().trim();
String password = editTextPassword.getText().toString().trim();
if(TextUtils.isEmpty(email)){
//email field is empty
Toast.makeText(this,"Please enter email",Toast.LENGTH_LONG).show();
return;
}
if(TextUtils.isEmpty(password)){
//password is empty
Toast.makeText(this,"Please enter your
password",Toast.LENGTH_LONG).show();
return;
}
//if validations are ok
//show a progressbar
progressDialog.setMessage("Registering user...");
progressDialog.show();
firebaseAuth.createUserWithEmailAndPassword(email,password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>
() {
@Override
public void onComplete(@NonNull Task<AuthResult> task){
if(task.isSuccessful()){
Toast.makeText(MainActivity.this,"Registration successful",Toast.LENGTH_LONG).show();
}
else{
Toast.makeText(MainActivity.this,"Failed to register. Please try again", Toast.LENGTH_LONG).show();
}
progressDialog.dismiss();
}});
}
@Override
public void onClick(View view) {
if(view == buttonRegsiter){
registerUser();
}
}
}
您删除google-services.json文件需要再次下载并将其放在应用程序文件目录中
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.