public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Plane plane = (Plane) getArguments().get(ARGS_PLANE); return initializeForView(new MyGdxGame()); }