I my Main activity which has the initial GLSurfaceView instantiated. When I switch another activity I would like to be able to access it. Any suggestions?
- Code: Select all
//initiates camera and sets camera
GLView = new ViewCore(this, timer); //instantiates the view
setContentView(GLView); //sets view
LayoutInflater inflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
//grabs mainmenu.xml to use as display layout
ViewGroup ViewMain = (ViewGroup) inflater.inflate(com.Arkham.R.layout.mainmenu, null);
this.addContentView(ViewMain, new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));


