title: Firebase getInstance returns null
body: <p>I want to download data from firebase. and I used the method below to use it comfortably among the activities.
  In mDatabase I can view data being downloaded in debug mode, but I cannot transfer it to the code I want. The piece of code I gave below always looks null. I do not know how to do it...</p>
  <p>Thank you.</p>
  <p>Firebase Json;</p>
  <pre><code> &quot;server&quot; : {
      &quot;time&quot; : {
        &quot;Time&quot; : 1617695199510
      }
    }
  </code></pre>
  <p>This;</p>
  <pre><code>mDatabase.child(&quot;/server/time/Time&quot;).addListenerForSingleValueEvent(new ValueEventListener() {
                  @Override
                  public void onDataChange(@NonNull DataSnapshot dataSnapshot) {
                      server serverTime = null;
                      for (DataSnapshot snapshot : dataSnapshot.getChildren()) {
                          serverTime = snapshot.getValue(server.class);
                      }
                      MyApplication.getInstance().setmServer(serverTime); // This code always returns null. 
  //I'm trying to pass the firebase value here. I am trying to pass the value here to setmServer (MyApplication).
                  }
      
                  @Override
                  public void onCancelled(@NonNull DatabaseError databaseError) {
                      hideProgressDialog();
                  }
              });
  </code></pre>
  <p>MyApplication.java:</p>
  <pre><code>public server mServer = null;
  private static MyApplication mInstance = null;
  
  @Override
      public void onCreate() {
          super.onCreate();
          mInstance = this;
  }
      public static MyApplication getInstance() {
          return mInstance;
      }
  
  public server getmServer(){
          return mServer;
      }
  
      public void setmServer(server mserver){
          mServer = mserver;
      }
  </code></pre>
  <p>server.java:</p>
  <pre><code>@IgnoreExtraProperties
  public class server {
      public long Time;
  
      public server(long Time) {
          this.Time = Time;
  
      }
  }
  </code></pre>