title: How to update fragment tab from BroadcastReceiver?
body: <p>I send intent when some flag in my program is set, and then receive this intent in BroadcastReceiver. I don't know how to update tab fragment from here. Any suggestions or examples?</p>
  
  <p>I get this log when flag is set, but I don't knw how from there:</p>
  
  <pre><code>public class MyReceiver extends BroadcastReceiver {
     @Override
     public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "hello :)", Toast.LENGTH_LONG).show();
     }  
  }
  </code></pre>
  
  <p>Thanks for help!</p>
  
  <p>Fragment:</p>
  
  <pre><code>public class FragmentInfo extends Fragment {
  
  private TextView textView1;
      private TextView textView3;
      private TextView textView5;
      private TextView textView7;
      private TextView textView8;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
  
      View myFragmentView = inflater.inflate(R.layout.fragment_info, container, false);
  
      connectButton = (Button) myFragmentView.findViewById(R.id.button1);
      changeSettingsButton = (Button) myFragmentView.findViewById(R.id.button2);
      erraseFlightsButton = (Button) myFragmentView.findViewById(R.id.button3);
  
      //TextView for status of connected device..
      textView1 = (TextView)myFragmentView.findViewById(R.id.TextView1);
      //TextView for Device name
      textView3 = (TextView)myFragmentView.findViewById(R.id.TextView3);
      //TextView for Serial number
      textView5 = (TextView)myFragmentView.findViewById(R.id.TextView5);
      //TextView for Software version
      textView7 = (TextView)myFragmentView.findViewById(R.id.TextView7);
      //TextView for Connected Device version
      textView8 = (TextView)myFragmentView.findViewById(R.id.TextView8);  
  
  
      return myFragmentView;
  }
  
  }
  </code></pre>