title: Adding listener to onStart vs onCreate
body: <p>I'm trying to implement a button listener, and am able to if I do so in the onStart method. When I instead initialize in the onCreate (which I read is good practice), I'm receiving the error "Failed to update a TargetChangeListener"and the app crashes. Here's the main activity:</p>
  
  <pre><code>public class EventExampleActivity extends ActionBarActivity {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_event_example);
  
      if (savedInstanceState == null) {
          getSupportFragmentManager().beginTransaction()
                  .add(R.id.container, new PlaceholderFragment()).commit();
  
      }
      initListeners();
  }
  
  protected void onStart() {
      super.onStart();
  }
  
  private void initListeners() {
      Button myButton = (Button) findViewById(R.id.button1);
  
  
      myButton.setOnClickListener(
          new Button.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  TextView myTextView = (TextView) findViewById(R.id.textView1);
                  myTextView.setText("Button Pressed!");              
              }
  
      });
  }
  ...
  ...
  }
  </code></pre>
  
  <p>if it helps, I'm following this tutorial: <a href="http://www.techotopia.com/index.php/An_Overview_and_Example_of_Android_Event_Handling" rel="nofollow">http://www.techotopia.com/index.php/An_Overview_and_Example_of_Android_Event_Handling</a></p>
  
  <p>Thank you for any insight!</p>