Skip to content

Commit

Permalink
Issue fix GLWallpaperService#4 - Crash on the launch of GalleryActivi…
Browse files Browse the repository at this point in the history
…ty - IllegalArgumentException: No config chosen

Solution was found on stack overflow
	http://stackoverflow.com/questions/6594636/java-lang-illegalargumentexception-no-configs-match-configspec-while-openin
	http://stackoverflow.com/questions/14167319/android-opengl-demo-no-config-chosen

Error message was:
	03-09 14:31:02.927: E/AndroidRuntime(986): java.lang.IllegalArgumentException: No config chosen
	03-09 14:31:02.927: E/AndroidRuntime(986): 	at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:874)
	03-09 14:31:02.927: E/AndroidRuntime(986): 	at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
	03-09 14:31:02.927: E/AndroidRuntime(986): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
	03-09 14:31:02.927: E/AndroidRuntime(986): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
  • Loading branch information
markfguerra committed Mar 9, 2013
1 parent 84d0d23 commit c4a4a4a
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ public void onCreate(Bundle savedInstanceState) {
//Instantiate OpenGL drawing surface and hold a reference
ViewGroup container = (ViewGroup)findViewById(R.id.container);
glView = new GLSurfaceView(this);

int redSize = 8;
int greenSize = 8;
int blueSize = 8;
int alphaSize = 8;
int depthSize = 16;
int stencilSize = 0;
glView.setEGLConfigChooser(redSize, greenSize, blueSize, alphaSize, depthSize, stencilSize);

MyRenderer renderer = new MyRenderer();
glView.setRenderer(renderer);

Expand Down

0 comments on commit c4a4a4a

Please sign in to comment.