Query firebase field returning null

Asked

Viewed 97 times

0

I am searching for the field (value) in the table (revenue) in the firebase database, but when performing the debug I get the following:

V/InputMethodManager: Starting input: tba=android.view.inputmethod.EditorInfo@cf4b4d9 nm : **com.example.controlefinanceiro ic=null**
D/InputMethodManager: startInputInner - Id : 0
I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport: Input channel constructed: fd=93
    Input channel destroyed: fd=89

In the field appears "null", follows the structure of my bank inserir a descrição da imagem aqui

private void inicializaComponentes() {
.... 
mDatabaseRefence = FirebaseDatabase.getInstance().getReference();
mDatabaseRefence.child("receita").child("valor").addValueEventListener( new ValueEventListener() { 
@Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { txtValor_Inicial = (TextView) findViewById(R.id.txtValor_Inicial); txtValor_Inicial.setText(String.valueOf(dataSnapshot.getValue())); }
  • 1

    Which query ? copies and paste the code of your query, we have to know how you did

  • @Joanmarcos added the code

1 answer

2


Browser other questions tagged

You are not signed in. Login or sign up in order to post.