title: How to use the EventBus onEvent method?
body: <p>I'm using EventBus in my Android application. In my mainActivity, I have this handler method which sends live data to the EventBus as follows:</p>
  
  <pre><code>private final Handler handler = new Handler() {
      @Override
      public void handleMessage(Message msg) {
          switch (msg.what) {
              case TGDevice.MSG_STATE_CHANGE:
                  EventBus.getDefault().postSticky(msg.arg1);
                  ...
  </code></pre>
  
  <p>I'm using Fragments class and I need to receive the message from the handler. </p>
  
  <p>I have registered the Fragment class in the onCreateView method as follows: </p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
      // Inflate the layout for this fragment
      View view = inflater.inflate(R.layout.fragment_data_log, container, false);
      EventBus.getDefault().register(this);
      tv = (TextView) view.findViewById(R.id.tv);
  }
  
  public void onEvent(Message message){
      tv.setText("Signal" + message);
  }
  </code></pre>
  
  <p>And I have the onEvent method which is suppose to be called when there is an Event. Unfortunately, this method is never called. I thought it might be method to be overridden but it doesn't seem to be. </p>
  
  <p>What do i need to do to read from messages from the EventBus?</p>
  
  <p>Also, in debugging modes, where can I see the number of threads being created? (I'm using Android Studio)</p>