title: Simple EventBus - No subscribers Registered
body: <p>I'm trying to implement the absolute basic implementation of <a href="http://greenrobot.org/eventbus/" rel="noreferrer">EventBus</a> Library for Android.</p>
  
  <p>What I'm trying to simple input content by user in <code>activity 1</code> and then instead of intent extras I'm using eventbus to post the entire object to the next activity - <code>activity 2</code>.
  I'm exactly following the given guidelines:</p>
  
  <blockquote>
    <p>PART 1: POJO</p>
  </blockquote>
  
  <pre><code>public class StudentEvent {
  
    public final String registrationNumber ;
    public final String name ;
    public final String course ;
    public final String branch ;
  
    public StudentEvent(String registrationNumber, String name, String course, String branch) {
      this.registrationNumber = registrationNumber;
      this.name = name;
      this.course = course;
      this.branch = branch;
    }
  
    public String getRegistrationNumber() {
      return registrationNumber;
    }
  
    public String getName() {
      return name;
    }
  
    public String getCourse() {
      return course;
    }
  
    public String getBranch() {
      return branch;
    }
  }
  </code></pre>
  
  <blockquote>
    <p>PART 2: Subscription in the second activity</p>
  </blockquote>
  
  <pre><code>EventBus.getDefault().register(this); //onCreate
  
  EventBus.getDefault().unregister(this); //onDestroy
  
  @Subscribe
  public void eventReceiver(StudentEvent studentEvent){
    tvRegistrationNumber.setText(studentEvent.getRegistrationNumber());
    tvName.setText(studentEvent.getName());
    tvBranch.setText(studentEvent.getBranch());
    tvCourse.setText(studentEvent.getCourse());
  }
  </code></pre>
  
  <blockquote>
    <p>PART 3: Post the event</p>
  </blockquote>
  
  <pre><code>StudentEvent studentEventObject = new StudentEvent(
              etRegistrationNumber.getText().toString(),
              etName.getText().toString(),
              etCourse.getText().toString(),
              etBranch.getText().toString()) ;
  
   EventBus.getDefault().post(studentEventObject);
  </code></pre>
  
  <p>I get the Error: </p>
  
  <pre><code>D/EventBus: No subscribers registered for event class co.swisdev.abhinav.eventbustesting.StudentEvent
  D/EventBus: No subscribers registered for event class org.greenrobot.eventbus.SubscriberExceptionEvent
  </code></pre>
  
  <p>WHAT AM I MISSING?<br>
  It is working when I make the subscription in the same class.</p>