I have three views in my app and I would like to be able to hide them and bring them back selectively. I have tried using the following triggered by a button click event:
if(SurfaceView().isShown()==true){
SurfaceView().setVisibility(View.INVISIBLE);
}else if(!SurfaceView().isShown()){
SurfaceView().setVisibility(View.VISIBLE);
}
However this usually freezes up the views and then closes the app with no errors except the following :
NvRmChannelSubmitt: NvError_IoctlFailed with error code 14
EDIT: the view that Im referring to is actually the _glsurfaceview in the renderactivity from min3d
public class RendererActivity extends Activity implements ISceneController
{
public Scene scene;
protected static GLSurfaceView _glSurfaceView;
My main activity extend RenderActivity
EDIT: added logcat dump
The only things showing up upon the closing are these
03-02 15:57:00.338: I/Min3D(28364): Renderer.onSurfaceChanged()
03-02 15:57:00.355: D/(28364): NvRmChannelSubmit: NvError_IoctlFailed with error code 14
Looks like you might have a copy/paste typo in your code. Are you trying to show the
glSurfaceViewif theSurfaceViewis invisible? If so, try this: