I have looked through the solutions on stackoverflow and none of them seem to fix my problem. I have included the API in my manifest file:
<uses-sdk android:minSdkVersion="10" />
<uses-feature android:required="true" android:glEsVersion="0x00020000"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:name=".HidderActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
and my wrapper code is:
class GLSurface extends GLSurfaceView
{
final renderer r;
public GLSurface(Context context)
{
super(context);
setEGLContextClientVersion(2);
r = new renderer();
setRenderer(r);
setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
}
}
This is the error.
Called unimplemented OpenGL ES API
Looks like there are some things with the Androids ability to use the 2.0 persion of OpenGL ES that hinders it from working on devices. To solve this problem I uncommented the
line and it worked. This however seems to put that version to (1.1?). Depends on what you want to do, this might not be a good solution but for me making a 2D game it doesn’t really matter.