0

I'm making a simple android app using firebase database (9.0.2) to save data.

The app really simple, it have a button, when click on it we'll try to write an object to firebase database.

The object as below:

public class Place {
    public String name;
    public Address address;
}

and

public class Shop extends Place {
    public General generalInfo;
    public Details detailsInfo;
}

I create a Shop object then use setValue function to save it to firebase database.

Check it on Firebase console, the data was added, but it missing name, address fields.

Did you face it before? What can i do in this case in order to make it work?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Lạng Hoàng
  • 1,790
  • 3
  • 17
  • 32

0 Answers0