title: Firebase - How do I make a new table/structure?
body: <p>So I am currently developing an API which gets data from Firebase and depending on that data the button changes its color. However, when I tried to make a new structure for my buttons. It won't let me make one.</p>
  
  <p>I tried the answers here: <a href="https://stackoverflow.com/questions/41031700/how-to-insert-data-of-two-tables-in-firebase">How to insert data of two tables in Firebase?</a> and here: <a href="https://stackoverflow.com/questions/34480412/how-can-i-create-an-empty-table-from-android-app-in-firebase">How can I create an empty table from android app in Firebase?</a> but neither did work for me.</p>
  
  <p>Here's my sample code:</p>
  
  <pre><code>public class Normal extends AppCompatActivity {
  
      Button suite, normal, room1;
      private DrawerLayout mDrawerLayout;
      private ActionBarDrawerToggle mToggle;
      private DatabaseReference mFirebaseDatabase1;
      private FirebaseDatabase mFirebaseInstance;
  
      //FIREBASE AUTH FIELDS
  
      DatabaseReference mSearchedLocationReference;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_normal);
  
          mFirebaseInstance = FirebaseDatabase.getInstance();
  
          //FIREBASE
          mFirebaseDatabase1 = mFirebaseInstance.getReference("Rooms");
          mSearchedLocationReference = mFirebaseDatabase1.child("Room1").child("RoomStatus");
  
  
          //ASSIGN ID's
  
          room1 = (Button) findViewById(R.id.room2);
  
  
          room1.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  mFirebaseDatabase1.child("Rooms").child("Room1").child("RoomStatus").setValue("Green");
                  startActivity(new Intent(Normal.this, room2.class));
              }
          });
  
  
          mSearchedLocationReference.addValueEventListener(new ValueEventListener() { //attach listener
  
              @Override
              public void onDataChange(DataSnapshot dataSnapshot) { //something changed!
                  for (DataSnapshot locationSnapshot : dataSnapshot.getChildren()) {
                      String location = locationSnapshot.getValue().toString();
                      Log.d("Locations updated", "location: " + location); //log
                      if ( location.equals("Green")){
                          room1.setBackgroundColor(Color.GREEN);
                      }else if ( location.equals("Red")){
                          room1.setBackgroundColor(Color.RED);
  
                      }
                      else{
                          room1.setBackgroundColor(Color.YELLOW);
  
                      }
                  }
              }
  
              @Override
              public void onCancelled(DatabaseError databaseError) { //update UI here if error occurred.
  
              }
          });
  
      }
  }
  </code></pre>
  
  <p>PS: I created the User structure (which is for my login) on another class.</p>
  
  <p><a href="https://i.stack.imgur.com/MIfWg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MIfWg.png" alt="model"></a></p>