I am very new to Android and OpenGL. I was asked to write an Android app that needs to switch between a standard Activity and a GLSurfaceView (which uses a Renderer) and the other way round. I managed to go from my Activity to my GLSurfaceView but I did not find a way go from my GLSurfaceView to my Activity.
I have been looking everywhere on the internet for the last two days without any luck. I am pretty sure that I am missing something very easy.
This is how I managed to go from my Activity to my GLSurfaceView:
Bundle extras = new Bundle();
Intent goCTestStarterIntent = new Intent(v.getContext(),CTestView.class);
goCTestStarterIntent.putExtras(extras);
startActivityForResult(goCTestStarterIntent,0);
Just in case anyone is interested in the solution. My renderer extends Activity now. When the tasks on the OpenGL area are finished this code is executed:
Intent myIntent = new Intent(context,myActivity.class);
context.startActivity(myIntent);