title: getText returning null value on a TextView
body: <p>I've a TextView in my app with no initial value. This TextView is updated with Firebase <code>dataSnapshot</code> value. Now,the problem is this TextView is returning null value even when it has been updated with datasnapshot value. 
  My logic is, I need to compare my previous value updated in TextView with new <code>dataSnapshot</code> value. If both value differs,i need to send a notificaton. 
  So How can i get TextView value from a TextView which is updated with Firebase <code>dataSnapshot</code>?
  Or what could be the easiest approach for achieving it?</p>
  
  <p>Edit:</p>
  
  <p>Here's my code</p>
  
  <pre><code>  //This view is initialised in onCreate. Adding just for reference
    TextView tv= view.findViewbyId(R.id.mytextview);
  
    mFirebaseDatabaseInstance.getReference("mgs").addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              //    Log.d(TAG, "App title updated");
  
                  TextView tv= getActivity().findViewbyId(R.id.mytextview);
                  String newValue = dataSnapshot.getValue(String.class);
  
                  tv.setText(bhaw);       
  
              if (!newValue.equals(tv)) {
  
                  sendNotification("msg");
  
              }
  </code></pre>