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
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())); }
Which query ? copies and paste the code of your query, we have to know how you did
– Joan Marcos
@Joanmarcos added the code
– Valéria Paiva