Hey.
When debugging an application on the tablet, an error occurs that interrupts the application:
06-14 11:12:11.699 8073-8101/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 332 java.lang.RuntimeException: createContext failed: EGL_SUCCESS at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1197) at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1188) at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1038) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1405) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1244) 06-14 11:12:18.039 8136-8167/? E/fb4a(:<default>):MmsConfig: MmsConfig.loadMmsSettings mms_config.xml missing uaProfUrl setting Googling, I discovered that this error is related to OpenGL ES 2. The corresponding setting is in the manifest:
<uses-feature android:glEsVersion="0x00020000" android:required="true" /> Details:
- The application uses the ArcGIS Runtime SDK for Android version 100.0.0
- an error occurs when the MapView element is placed in the activation:
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context="com.at.agromap.MainActivity"> <com.esri.arcgisruntime.mapping.view.MapView android:id="@+id/mapView" android:layout_width="fill_parent" android:layout_height="fill_parent" > </com.esri.arcgisruntime.mapping.view.MapView> </RelativeLayout> - Used tablet ASUS fonepad 7
- Android 4.2.2 API level 17
I just can not understand what the cause of the error is. If someone came across, it would be interesting to know where exactly and why this exception occurs?
LATER UPDATE
Response from the ArcGis Developer Forum:
It will not be a bad idea. If you want to create our OpenGL context. There is a need for work to be carried out (especially for things like Vector Tiled Layers). It will be a concept, especially older devices, older versions of Android. Please try on another device or the emulator.
It turns out that you need to either wait for the next release of the SDK, or use a newer device (maybe Android 5 or higher)