package fr.miage.paris10.projetm1.helpu;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;

public class BecomeHelperActivity extends AppCompatActivity{

  private Button btn_valider;
  private EditText ecText;
  private FirebaseAuth mFirebaseAuth;
  private DatabaseReference mDatabaseReference;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_become_helper);

    // Initialize FirebaseAuth
    mFirebaseAuth = FirebaseAuth.getInstance();
    mDatabaseReference = FirebaseDatabase.getInstance().getReference();
    btn_valider = (Button) findViewById(R.id.button_valider);
    ecText = (EditText) findViewById(R.id.input_ec);

    btn_valider.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
        Intent intent = new Intent(BecomeHelperActivity.this,ValidationActivity.class);
        startActivity(intent);
      }
    });
    //String ec = ecText.getText().toString();

  }
}
@@ -480,121 +480,8 @@
 der;
-%0A  private EditText ecText;%0A  private FirebaseAuth mFirebaseAuth;%0A  private DatabaseReference mDatabaseReference;
 %0A%0A  
@@ -674,128 +674,8 @@
 uth%0A
-    mFirebaseAuth = FirebaseAuth.getInstance();%0A    mDatabaseReference = FirebaseDatabase.getInstance().getReference();%0A
     
@@ -735,61 +735,8 @@
 er);
-%0A    ecText = (EditText) findViewById(R.id.input_ec);
 %0A%0A  
@@ -987,58 +987,12 @@
  %7D);
-%0A    //String ec = ecText.getText().toString();
 %0A%0A  %7D%0A
-
 %7D
+%0A

Update BecomeHelperActivity.java