public void createLayout() {
        logger.log(Level.FINE, "Splash Screen Picture Resource ID: {0}", splashPicID);
        FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(
                ViewGroup.LayoutParams.MATCH_PARENT,
                ViewGroup.LayoutParams.MATCH_PARENT,
                Gravity.CENTER);

        if (frameLayout != null && frameLayout.getParent() != null) {
            ((ViewGroup) frameLayout.getParent()).removeView(frameLayout);
        }
        frameLayout = new FrameLayout(getActivity());

        if (view.getParent() != null) {
            ((ViewGroup) view.getParent()).removeView(view);
        }
        frameLayout.addView(view);

        if (splashPicID != 0) {
            splashImageView = new ImageView(getActivity());

            Drawable drawable = getResources().getDrawable(splashPicID);
            if (drawable instanceof NinePatchDrawable) {
                splashImageView.setBackgroundDrawable(drawable);
            } else {
                splashImageView.setImageResource(splashPicID);
            }

            if (splashImageView.getParent() != null) {
                ((ViewGroup) splashImageView.getParent()).removeView(splashImageView);
            }
            frameLayout.addView(splashImageView, lp);

           logger.fine("Splash Screen Created");
        } else {
            logger.fine("Splash Screen Skipped.");
        }
    }
Gets called by the InputManager on all touch/drag/scale events
jme3-android/src/main/java/com/jme3/app/AndroidHarnessFragment.java