Error Occur in Android
I Download ArcGis plugin and Install it. I do Some Coding which
are Following
main.xml
--------
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
tools:context=".MapExampleArcActivity"
>
<com.esri.android.map.MapView
android:id="@+id/map"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
initExtent = "-1.3296373526814876E7 3930962.41823043
-1.2807176545789773E7 4201243.7502468005">
</com.esri.android.map.MapView>
</LinearLayout>
MapExample.java
---------------
package com.MapExampleArc;
import android.app.Activity;
import android.os.Bundle;
import com.esri.android.map.MapView;
import com.esri.android.map.ags.ArcGISTiledMapServiceLayer;
public class MapExampleArcActivity extends Activity {
MapView mMapView ;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mMapView = new MapView(this);
// Retrieve the map and initial extent from XML layout
mMapView = (MapView)findViewById(R.id.map);
// Add dynamic layer to MapView
mMapView.addLayer(new ArcGISTiledMapServiceLayer("" +
"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"));
}
@Override
protected void onDestroy() {
super.onDestroy();
}
@Override
protected void onPause() {
super.onPause();
mMapView.pause();
}
@Override protected void onResume() {
super.onResume();
mMapView.unpause();
}
}
AndroidManifest.xml
-------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.MapExampleArc"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:glEsVersion="0x00020000"
android:required="true"/>
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
<activity android:name=".MapExampleArcActivity"
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>
</manifest>
I also add apk in emulator name are "com.android.vending-20130716.apk"
and "com.google.android.gms-20130716.apk"
When I run this application, Following error generated.
09-12 17:05:08.894: E/Trace(2879): error opening trace file: No such file
or directory (2)
09-12 17:05:10.054: D/dalvikvm(2879): Trying to load lib
/data/app-lib/com.MapExampleArc-1/libruntimecore_java.so 0x40ce3230
09-12 17:05:10.594: D/dalvikvm(2879): Added shared lib
/data/app-lib/com.MapExampleArc-1/libruntimecore_java.so 0x40ce3230
09-12 17:05:11.003: D/ArcGIS.LifeCycle(2879): MapSurface initialize
com.esri.android.map.MapSurface{40cf0f40 V.E..... ......I. 0,0-0,0}
09-12 17:05:11.083: D/ArcGIS.LifeCycle(2879): map.onChildViewAdded
09-12 17:05:11.083: D/ArcGIS.LifeCycle(2879): map.onChildViewAdded
09-12 17:05:11.404: D/ArcGIS.LifeCycle(2879): MapSurface initialize
com.esri.android.map.MapSurface{40cfc520 V.E..... ......I. 0,0-0,0}
09-12 17:05:11.414: D/ArcGIS.LifeCycle(2879): map.onChildViewAdded
09-12 17:05:11.414: D/ArcGIS.LifeCycle(2879): map.onChildViewAdded
09-12 17:05:11.434: D/ArcGIS.LifeCycle(2879): surface.addLayer
->http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer
09-12 17:05:11.957: D/ArcGIS.LifeCycle(2879): map.onSizechanged
09-12 17:05:12.074: D/libEGL(2879): Emulator without GPU support detected.
Fallback to software renderer.
09-12 17:05:12.074: D/libEGL(2879): loaded /system/lib/egl/libGLES_android.so
09-12 17:05:12.114: I/Choreographer(2879): Skipped 36 frames! The
application may be doing too much work on its main thread.
09-12 17:05:12.234: W/dalvikvm(2879): threadid=11: thread exiting with
uncaught
exception (group=0x40a71930) 09-12 17:05:12.234: E/AndroidRuntime(2879):
FATAL EXCEPTION: GLThread 144 09-12 17:05:12.234: E/AndroidRuntime(2879):
java.lang.IllegalArgumentException: No configs match configSpec 09-12
17:05:12.234: E/AndroidRuntime(2879): at
com.esri.android.map.MapSurface$a.chooseConfig(Unknown Source) 09-12
17:05:12.234: E/AndroidRuntime(2879): at
android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
09-12 17:05:12.234: E/AndroidRuntime(2879): at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
09-12 17:05:12.234: E/AndroidRuntime(2879): at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240) 09-12
17:05:12.356: D/gralloc_goldfish(2879): Emulator without GPU emulation
detected. 09-12 17:05:18.824: I/Process(2879): Sending signal. PID: 2879
SIG: 9
Give me reply As soon As possible.
No comments:
Post a Comment