Andengine - remove Ads from the splashscreen
===

The problem is that XML-view (Ads) appears at the time of game data loading (about 5-6 sec).
How can I remove Ads from the splashscreen?

Adding views to layout. XML-view - invisible

	@Override
    protected void onSetContentView() {
         relativeLayout = new RelativeLayout(this);
         final FrameLayout.LayoutParams relativeLayoutLayoutParams = 
              new FrameLayout.LayoutParams( FrameLayout.LayoutParams.MATCH_PARENT,
              FrameLayout.LayoutParams.MATCH_PARENT);

         this.mRenderSurfaceView = new RenderSurfaceView(this);
         this.mRenderSurfaceView.setRenderer( mEngine, this );

         final LayoutParams surfaceViewLayoutParams = new RelativeLayout.LayoutParams(
              super.createSurfaceViewLayoutParams());
         surfaceViewLayoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);

         // XML-view above AndEngine view
         LayoutInflater vi = (LayoutInflater) getSystemService(
              Context.LAYOUT_INFLATER_SERVICE);
         vv = vi.inflate(R.layout.main, null);
         vv.bringToFront();
         // set XML-view visible!
         vv.setVisibility( View.GONE );
          
        // add views to the layout
        // AndEngine view
        relativeLayout.addView(this.mRenderSurfaceView, surfaceViewLayoutParams);
        
	    // XML view
	    relativeLayout.addView(vv, createAdViewLayoutParams());
        setContentView(relativeLayout, relativeLayoutLayoutParams);
	}

Loading splashscreen resources and scene

	@Override
	public void onCreateResources(OnCreateResourcesCallback pOnCreateResourcesCallback) throws Exception {

		splashBackgroundTextureAtlas = new BitmapTextureAtlas(getTextureManager(), 480, 800, TextureOptions.NEAREST);
        splashBackgroundTextureRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(splashBackgroundTextureAtlas, this, "gfx/splash.png", 0, 0);
        mEngine.getTextureManager().loadTexture(splashBackgroundTextureAtlas);

        pOnCreateResourcesCallback.onCreateResourcesFinished();
	}


	@Override
	public void onCreateScene(OnCreateSceneCallback pOnCreateSceneCallback) throws Exception {
		splashScene = new Scene();
        splashScene.setBackgroundEnabled(false);
        splashScene.attachChild(new Sprite(0, 0, splashBackgroundTextureRegion, this.getVertexBufferObjectManager()));
        pOnCreateSceneCallback.onCreateSceneFinished(splashScene);
	}

Loading game resources and scene

	@Override
	public void onPopulateScene(Scene pScene, OnPopulateSceneCallback pOnPopulateSceneCallback) throws Exception {
        mEngine.registerUpdateHandler(new TimerHandler(0.01f, new ITimerCallback() {
                public void onTimePassed(final TimerHandler pTimerHandler) {
                        mEngine.unregisterUpdateHandler(pTimerHandler);
                        loadResources();
                        loadScene();
                       
                        mEngine.setScene(scene);
					}
				}));

        pOnPopulateSceneCallback.onPopulateSceneFinished();
                
        // set XML-view visible!                
		runOnUiThread(new Runnable() {
			public void run() { 
			    vv.setVisibility(View.VISIBLE);
			}
		});
	}

	public void loadResources() {
		// game resources
		try {
			ITexture backgroundTexture = new BitmapTexture(
					this.getTextureManager(), new IInputStreamOpener() {
					 	@Override
						public InputStream open() throws IOException {
							return getAssets().open("gfx/bg01.jpg");
						}
					});
			backgroundTexture.load();
			mBackgroundTextureRegion = TextureRegionFactory.extractFromTexture(backgroundTexture);
			
		} catch (IOException e) {
		}
	}

	public void loadScene() {
		scene = new Scene();
		scene.setTouchAreaBindingOnActionDownEnabled(true);

		// add background to scene
		Sprite backgroundSprite = new Sprite(0, 0, this.mBackgroundTextureRegion, getVertexBufferObjectManager());
		scene.attachChild(backgroundSprite);

		// add sprite to scene
		pandaSprite = new Panda( false, TextureControlManager.createTiledTextureRegionFromAsset(
				getTextureManager(), this, Panda.ANIMATION_FILES), 
				getVertexBufferObjectManager());
		scene.attachChild(pandaSprite);

		scene.attachChild(pandaSprite);
		scene.registerTouchArea(pandaSprite);       
	}