title: Run a method after View is created - Android
body: <p>I've currently got an activity that creates a view. this view uses other classes (such as one to create a random sequence of integers). I need to run a method (which will display the sequence using bitmaps) once the view is created. So once the user clicks "Start Game" this sequence will be displayed. </p>
  
  <p>I've tried calling the method after setting the content view inside the onCreate method by the sequence is not generated (all 0's) correctly. I've tries this also with onStart and onFinishInflate inside the myView class.</p>
  
  <p>Is there a way i can run this method after everything is inflated and initialized? So after the user clicks "Start Game" and the view is changed, the method needs to run.</p>
  
  <p>Thanks for looking.</p>
  
  <p>Edit: A failed attempt.</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
  
    super.onCreate(savedInstanceState);
    this.gameView = new GameView(getApplicationContext(), getCellSource(getApplicationContext()));
    setContentView(this.gameView);
    // this.gameView.displaySequence(this.gameView.gameEngine.getGenSequence()); Need this to run once view is displayed.
  }
  </code></pre>