How to retreive all data from datasnapshot AndroidStudio?












0















I am trying to get all the data about receta from my firebase real time database (Link to my firebase recetas image)
image
When I get the data from it using the code below, I get all the data but description and origin that is set to null



database = FirebaseDatabase.getInstance();
recetasReference = database.getReference().child("recetas");
recetasReference.addValueEventListener(new ValueEventListener() {
@Override
public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
for(DataSnapshot ds: dataSnapshot.getChildren()){
Receta new_receta = ds.getValue(Receta.class);
recetas.add(new_receta);

}
myAdapter.notifyDataSetChanged();
}

@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
Toast.makeText(getApplicationContext(), "Error al mostrar",
Toast.LENGTH_LONG)
.show();
}
});


I tried debuggin, ds has the descripcion and origen correctly but i do not why they are set to null when creating the receta.
ds
receta
Any Idea?
Sorry if i made any mistake on the post, it is my first one.



Receta class:



public class Receta {

private String name;
private String autor;
private String desc;
private String origin;
private String tiempoPrep;
private String filepath;

public Receta(String user, String nombre, String
descripcion, String origen, String tiempo
, String filepath) {
this.autor = user;
this.name = nombre;
this.desc = descripcion;
this.origin = origen;
this.tiempoPrep = tiempo;
this.filepath = filepath;
}
public Receta(String user, String nombre, String
descripcion, String origen, String tiempo) {
this.autor = user;
this.name = nombre;
this.desc = descripcion;
this.origin = origen;
this.tiempoPrep = tiempo;
}

public Receta(){}

public String getNombre() {
return name;
}

public void setNombre(String nombre) {
this.name = nombre;
}

public String getAutor() {
return autor;
}

public void setAutor(String autor) {
this.autor = autor;
}

public String getDesc() {
return desc;
}

public void setDesc(String desc) {
this.desc = desc;
}

public String getOrigin() {
return origin;
}

public void setOrigin(String origen) {
this.origin = origen;
}

public String getTiempoPrep() {
return tiempoPrep;
}

public void setTiempoPrep(String tiempoPrep) {
this.tiempoPrep = tiempoPrep;
}

public String getFilepath() {
return filepath;
}

public void setFilepath(String filepath) {
this.filepath = filepath;
}
}









share|improve this question





























    0















    I am trying to get all the data about receta from my firebase real time database (Link to my firebase recetas image)
    image
    When I get the data from it using the code below, I get all the data but description and origin that is set to null



    database = FirebaseDatabase.getInstance();
    recetasReference = database.getReference().child("recetas");
    recetasReference.addValueEventListener(new ValueEventListener() {
    @Override
    public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
    for(DataSnapshot ds: dataSnapshot.getChildren()){
    Receta new_receta = ds.getValue(Receta.class);
    recetas.add(new_receta);

    }
    myAdapter.notifyDataSetChanged();
    }

    @Override
    public void onCancelled(@NonNull DatabaseError databaseError) {
    Toast.makeText(getApplicationContext(), "Error al mostrar",
    Toast.LENGTH_LONG)
    .show();
    }
    });


    I tried debuggin, ds has the descripcion and origen correctly but i do not why they are set to null when creating the receta.
    ds
    receta
    Any Idea?
    Sorry if i made any mistake on the post, it is my first one.



    Receta class:



    public class Receta {

    private String name;
    private String autor;
    private String desc;
    private String origin;
    private String tiempoPrep;
    private String filepath;

    public Receta(String user, String nombre, String
    descripcion, String origen, String tiempo
    , String filepath) {
    this.autor = user;
    this.name = nombre;
    this.desc = descripcion;
    this.origin = origen;
    this.tiempoPrep = tiempo;
    this.filepath = filepath;
    }
    public Receta(String user, String nombre, String
    descripcion, String origen, String tiempo) {
    this.autor = user;
    this.name = nombre;
    this.desc = descripcion;
    this.origin = origen;
    this.tiempoPrep = tiempo;
    }

    public Receta(){}

    public String getNombre() {
    return name;
    }

    public void setNombre(String nombre) {
    this.name = nombre;
    }

    public String getAutor() {
    return autor;
    }

    public void setAutor(String autor) {
    this.autor = autor;
    }

    public String getDesc() {
    return desc;
    }

    public void setDesc(String desc) {
    this.desc = desc;
    }

    public String getOrigin() {
    return origin;
    }

    public void setOrigin(String origen) {
    this.origin = origen;
    }

    public String getTiempoPrep() {
    return tiempoPrep;
    }

    public void setTiempoPrep(String tiempoPrep) {
    this.tiempoPrep = tiempoPrep;
    }

    public String getFilepath() {
    return filepath;
    }

    public void setFilepath(String filepath) {
    this.filepath = filepath;
    }
    }









    share|improve this question



























      0












      0








      0








      I am trying to get all the data about receta from my firebase real time database (Link to my firebase recetas image)
      image
      When I get the data from it using the code below, I get all the data but description and origin that is set to null



      database = FirebaseDatabase.getInstance();
      recetasReference = database.getReference().child("recetas");
      recetasReference.addValueEventListener(new ValueEventListener() {
      @Override
      public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
      for(DataSnapshot ds: dataSnapshot.getChildren()){
      Receta new_receta = ds.getValue(Receta.class);
      recetas.add(new_receta);

      }
      myAdapter.notifyDataSetChanged();
      }

      @Override
      public void onCancelled(@NonNull DatabaseError databaseError) {
      Toast.makeText(getApplicationContext(), "Error al mostrar",
      Toast.LENGTH_LONG)
      .show();
      }
      });


      I tried debuggin, ds has the descripcion and origen correctly but i do not why they are set to null when creating the receta.
      ds
      receta
      Any Idea?
      Sorry if i made any mistake on the post, it is my first one.



      Receta class:



      public class Receta {

      private String name;
      private String autor;
      private String desc;
      private String origin;
      private String tiempoPrep;
      private String filepath;

      public Receta(String user, String nombre, String
      descripcion, String origen, String tiempo
      , String filepath) {
      this.autor = user;
      this.name = nombre;
      this.desc = descripcion;
      this.origin = origen;
      this.tiempoPrep = tiempo;
      this.filepath = filepath;
      }
      public Receta(String user, String nombre, String
      descripcion, String origen, String tiempo) {
      this.autor = user;
      this.name = nombre;
      this.desc = descripcion;
      this.origin = origen;
      this.tiempoPrep = tiempo;
      }

      public Receta(){}

      public String getNombre() {
      return name;
      }

      public void setNombre(String nombre) {
      this.name = nombre;
      }

      public String getAutor() {
      return autor;
      }

      public void setAutor(String autor) {
      this.autor = autor;
      }

      public String getDesc() {
      return desc;
      }

      public void setDesc(String desc) {
      this.desc = desc;
      }

      public String getOrigin() {
      return origin;
      }

      public void setOrigin(String origen) {
      this.origin = origen;
      }

      public String getTiempoPrep() {
      return tiempoPrep;
      }

      public void setTiempoPrep(String tiempoPrep) {
      this.tiempoPrep = tiempoPrep;
      }

      public String getFilepath() {
      return filepath;
      }

      public void setFilepath(String filepath) {
      this.filepath = filepath;
      }
      }









      share|improve this question
















      I am trying to get all the data about receta from my firebase real time database (Link to my firebase recetas image)
      image
      When I get the data from it using the code below, I get all the data but description and origin that is set to null



      database = FirebaseDatabase.getInstance();
      recetasReference = database.getReference().child("recetas");
      recetasReference.addValueEventListener(new ValueEventListener() {
      @Override
      public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
      for(DataSnapshot ds: dataSnapshot.getChildren()){
      Receta new_receta = ds.getValue(Receta.class);
      recetas.add(new_receta);

      }
      myAdapter.notifyDataSetChanged();
      }

      @Override
      public void onCancelled(@NonNull DatabaseError databaseError) {
      Toast.makeText(getApplicationContext(), "Error al mostrar",
      Toast.LENGTH_LONG)
      .show();
      }
      });


      I tried debuggin, ds has the descripcion and origen correctly but i do not why they are set to null when creating the receta.
      ds
      receta
      Any Idea?
      Sorry if i made any mistake on the post, it is my first one.



      Receta class:



      public class Receta {

      private String name;
      private String autor;
      private String desc;
      private String origin;
      private String tiempoPrep;
      private String filepath;

      public Receta(String user, String nombre, String
      descripcion, String origen, String tiempo
      , String filepath) {
      this.autor = user;
      this.name = nombre;
      this.desc = descripcion;
      this.origin = origen;
      this.tiempoPrep = tiempo;
      this.filepath = filepath;
      }
      public Receta(String user, String nombre, String
      descripcion, String origen, String tiempo) {
      this.autor = user;
      this.name = nombre;
      this.desc = descripcion;
      this.origin = origen;
      this.tiempoPrep = tiempo;
      }

      public Receta(){}

      public String getNombre() {
      return name;
      }

      public void setNombre(String nombre) {
      this.name = nombre;
      }

      public String getAutor() {
      return autor;
      }

      public void setAutor(String autor) {
      this.autor = autor;
      }

      public String getDesc() {
      return desc;
      }

      public void setDesc(String desc) {
      this.desc = desc;
      }

      public String getOrigin() {
      return origin;
      }

      public void setOrigin(String origen) {
      this.origin = origen;
      }

      public String getTiempoPrep() {
      return tiempoPrep;
      }

      public void setTiempoPrep(String tiempoPrep) {
      this.tiempoPrep = tiempoPrep;
      }

      public String getFilepath() {
      return filepath;
      }

      public void setFilepath(String filepath) {
      this.filepath = filepath;
      }
      }






      android firebase-realtime-database






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 2 at 5:50









      Priyanka

      17639




      17639










      asked Jan 2 at 0:19









      MacanaMacana

      34




      34
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Your model class receta property name(descripcion instead of desc and origen instead of origin) should be identical to the key name in the Firebase database.



          Your data class should look like these instead, having different names refering to the same variable is confusing.



          public class Receta {
          private String name;
          private String autor;
          private String descripcion;
          private String origen;
          private String tiempoPrep;
          private String filepath;

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep, String filepath) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          this.filepath = filepath;
          }

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          }

          public Receta() {
          }

          public String getName() {
          return name;
          }

          public void setName(String name) {
          this.name = name;
          }

          public String getAutor() {
          return autor;
          }

          public void setAutor(String autor) {
          this.autor = autor;
          }

          public String getDescripcion() {
          return descripcion;
          }

          public void setDescripcion(String descripcion) {
          this.descripcion = descripcion;
          }

          public String getOrigen() {
          return origen;
          }

          public void setOrigen(String origen) {
          this.origen = origen;
          }

          public String getTiempoPrep() {
          return tiempoPrep;
          }

          public void setTiempoPrep(String tiempoPrep) {
          this.tiempoPrep = tiempoPrep;
          }

          public String getFilepath() {
          return filepath;
          }

          public void setFilepath(String filepath) {
          this.filepath = filepath;
          }
          }





          share|improve this answer


























          • The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

            – Macana
            Jan 2 at 1:04











          • make sure they are written the same way. please upload your model class Receta

            – Dr4ke the b4dass
            Jan 2 at 1:06











          • I have added the Receta class

            – Macana
            Jan 2 at 1:18











          • check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

            – Dr4ke the b4dass
            Jan 2 at 1:30











          • I correct the spelling mistake from origin to origen. Try now.

            – Dr4ke the b4dass
            Jan 2 at 1:34











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53999995%2fhow-to-retreive-all-data-from-datasnapshot-androidstudio%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Your model class receta property name(descripcion instead of desc and origen instead of origin) should be identical to the key name in the Firebase database.



          Your data class should look like these instead, having different names refering to the same variable is confusing.



          public class Receta {
          private String name;
          private String autor;
          private String descripcion;
          private String origen;
          private String tiempoPrep;
          private String filepath;

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep, String filepath) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          this.filepath = filepath;
          }

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          }

          public Receta() {
          }

          public String getName() {
          return name;
          }

          public void setName(String name) {
          this.name = name;
          }

          public String getAutor() {
          return autor;
          }

          public void setAutor(String autor) {
          this.autor = autor;
          }

          public String getDescripcion() {
          return descripcion;
          }

          public void setDescripcion(String descripcion) {
          this.descripcion = descripcion;
          }

          public String getOrigen() {
          return origen;
          }

          public void setOrigen(String origen) {
          this.origen = origen;
          }

          public String getTiempoPrep() {
          return tiempoPrep;
          }

          public void setTiempoPrep(String tiempoPrep) {
          this.tiempoPrep = tiempoPrep;
          }

          public String getFilepath() {
          return filepath;
          }

          public void setFilepath(String filepath) {
          this.filepath = filepath;
          }
          }





          share|improve this answer


























          • The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

            – Macana
            Jan 2 at 1:04











          • make sure they are written the same way. please upload your model class Receta

            – Dr4ke the b4dass
            Jan 2 at 1:06











          • I have added the Receta class

            – Macana
            Jan 2 at 1:18











          • check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

            – Dr4ke the b4dass
            Jan 2 at 1:30











          • I correct the spelling mistake from origin to origen. Try now.

            – Dr4ke the b4dass
            Jan 2 at 1:34
















          0














          Your model class receta property name(descripcion instead of desc and origen instead of origin) should be identical to the key name in the Firebase database.



          Your data class should look like these instead, having different names refering to the same variable is confusing.



          public class Receta {
          private String name;
          private String autor;
          private String descripcion;
          private String origen;
          private String tiempoPrep;
          private String filepath;

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep, String filepath) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          this.filepath = filepath;
          }

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          }

          public Receta() {
          }

          public String getName() {
          return name;
          }

          public void setName(String name) {
          this.name = name;
          }

          public String getAutor() {
          return autor;
          }

          public void setAutor(String autor) {
          this.autor = autor;
          }

          public String getDescripcion() {
          return descripcion;
          }

          public void setDescripcion(String descripcion) {
          this.descripcion = descripcion;
          }

          public String getOrigen() {
          return origen;
          }

          public void setOrigen(String origen) {
          this.origen = origen;
          }

          public String getTiempoPrep() {
          return tiempoPrep;
          }

          public void setTiempoPrep(String tiempoPrep) {
          this.tiempoPrep = tiempoPrep;
          }

          public String getFilepath() {
          return filepath;
          }

          public void setFilepath(String filepath) {
          this.filepath = filepath;
          }
          }





          share|improve this answer


























          • The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

            – Macana
            Jan 2 at 1:04











          • make sure they are written the same way. please upload your model class Receta

            – Dr4ke the b4dass
            Jan 2 at 1:06











          • I have added the Receta class

            – Macana
            Jan 2 at 1:18











          • check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

            – Dr4ke the b4dass
            Jan 2 at 1:30











          • I correct the spelling mistake from origin to origen. Try now.

            – Dr4ke the b4dass
            Jan 2 at 1:34














          0












          0








          0







          Your model class receta property name(descripcion instead of desc and origen instead of origin) should be identical to the key name in the Firebase database.



          Your data class should look like these instead, having different names refering to the same variable is confusing.



          public class Receta {
          private String name;
          private String autor;
          private String descripcion;
          private String origen;
          private String tiempoPrep;
          private String filepath;

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep, String filepath) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          this.filepath = filepath;
          }

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          }

          public Receta() {
          }

          public String getName() {
          return name;
          }

          public void setName(String name) {
          this.name = name;
          }

          public String getAutor() {
          return autor;
          }

          public void setAutor(String autor) {
          this.autor = autor;
          }

          public String getDescripcion() {
          return descripcion;
          }

          public void setDescripcion(String descripcion) {
          this.descripcion = descripcion;
          }

          public String getOrigen() {
          return origen;
          }

          public void setOrigen(String origen) {
          this.origen = origen;
          }

          public String getTiempoPrep() {
          return tiempoPrep;
          }

          public void setTiempoPrep(String tiempoPrep) {
          this.tiempoPrep = tiempoPrep;
          }

          public String getFilepath() {
          return filepath;
          }

          public void setFilepath(String filepath) {
          this.filepath = filepath;
          }
          }





          share|improve this answer















          Your model class receta property name(descripcion instead of desc and origen instead of origin) should be identical to the key name in the Firebase database.



          Your data class should look like these instead, having different names refering to the same variable is confusing.



          public class Receta {
          private String name;
          private String autor;
          private String descripcion;
          private String origen;
          private String tiempoPrep;
          private String filepath;

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep, String filepath) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          this.filepath = filepath;
          }

          public Receta(String name, String autor, String descripcion, String origen,
          String tiempoPrep) {
          this.name = name;
          this.autor = autor;
          this.descripcion = descripcion;
          this.origen = origen;
          this.tiempoPrep = tiempoPrep;
          }

          public Receta() {
          }

          public String getName() {
          return name;
          }

          public void setName(String name) {
          this.name = name;
          }

          public String getAutor() {
          return autor;
          }

          public void setAutor(String autor) {
          this.autor = autor;
          }

          public String getDescripcion() {
          return descripcion;
          }

          public void setDescripcion(String descripcion) {
          this.descripcion = descripcion;
          }

          public String getOrigen() {
          return origen;
          }

          public void setOrigen(String origen) {
          this.origen = origen;
          }

          public String getTiempoPrep() {
          return tiempoPrep;
          }

          public void setTiempoPrep(String tiempoPrep) {
          this.tiempoPrep = tiempoPrep;
          }

          public String getFilepath() {
          return filepath;
          }

          public void setFilepath(String filepath) {
          this.filepath = filepath;
          }
          }






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 2 at 1:34

























          answered Jan 2 at 0:42









          Dr4ke the b4dassDr4ke the b4dass

          166214




          166214













          • The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

            – Macana
            Jan 2 at 1:04











          • make sure they are written the same way. please upload your model class Receta

            – Dr4ke the b4dass
            Jan 2 at 1:06











          • I have added the Receta class

            – Macana
            Jan 2 at 1:18











          • check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

            – Dr4ke the b4dass
            Jan 2 at 1:30











          • I correct the spelling mistake from origin to origen. Try now.

            – Dr4ke the b4dass
            Jan 2 at 1:34



















          • The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

            – Macana
            Jan 2 at 1:04











          • make sure they are written the same way. please upload your model class Receta

            – Dr4ke the b4dass
            Jan 2 at 1:06











          • I have added the Receta class

            – Macana
            Jan 2 at 1:18











          • check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

            – Dr4ke the b4dass
            Jan 2 at 1:30











          • I correct the spelling mistake from origin to origen. Try now.

            – Dr4ke the b4dass
            Jan 2 at 1:34

















          The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

          – Macana
          Jan 2 at 1:04





          The names where the same, descripcion and origen, i changed them to desc and origin to try with different names to the ones un firebase. I'll put the back as they where

          – Macana
          Jan 2 at 1:04













          make sure they are written the same way. please upload your model class Receta

          – Dr4ke the b4dass
          Jan 2 at 1:06





          make sure they are written the same way. please upload your model class Receta

          – Dr4ke the b4dass
          Jan 2 at 1:06













          I have added the Receta class

          – Macana
          Jan 2 at 1:18





          I have added the Receta class

          – Macana
          Jan 2 at 1:18













          check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

          – Dr4ke the b4dass
          Jan 2 at 1:30





          check out the data class. If on windows use shortcut Alt+Insert then choose generate either constructor or getters, setters. You'll avoid typos and is faster.

          – Dr4ke the b4dass
          Jan 2 at 1:30













          I correct the spelling mistake from origin to origen. Try now.

          – Dr4ke the b4dass
          Jan 2 at 1:34





          I correct the spelling mistake from origin to origen. Try now.

          – Dr4ke the b4dass
          Jan 2 at 1:34




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53999995%2fhow-to-retreive-all-data-from-datasnapshot-androidstudio%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith