Code example for CopyOnWriteArrayList

Methods: add, size

		surface.setRenderer(new SpriteBatcher(getResources(), bitmapIds, this));
	public void onButton(View v) {
		// Add icon to centre of screen with random direction 
		icons.add(new GAIcon());
		// Log event with the number of icons created. This way we can see how 
		// many of our users keep created icons until the engine chugs at 2fps! 
		GameAnalytics.newDesignEvent("IconCreated", icons.size());
	// Gets called every time a frame is to be drawn on GLSurfaceView: 
	public void onDrawFrame(GL10 gl, SpriteBatcher sb) {
		// Log Frames per Second (FPS) 
		// Update our entities' positions