code: @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.bouncing_balls);
          LinearLayout container = (LinearLayout) findViewById(R.id.container);
          container.addView(new MyAnimationView(this));
      }
docs: Called when the activity is first created.