gkaradagan

WMS layer, Can not parse MapView.initExtent from xml

Discussion created by gkaradagan on Nov 25, 2013
 // Retrieve the map and initial extent from XML layout
        mMapView = (MapView)findViewById(R.id.map);
      // Add dynamic layer to MapView
        String wmsURL = "http://********:8080/geoserver/wms";
        WMSLayer wmsLayer = new WMSLayer(wmsURL);
        mMapView.addLayer(wmsLayer);


i just want to see map with getting data from my wmsserver. but there are error like that

11-26 10:35:46.924: E/ArcGIS(11846): Can not parse MapView.initExtent from xml
11-26 10:35:46.924: E/ArcGIS(11846): java.text.ParseException: Unparseable number: "-1.3296373526814876E7" (at offset 21)
11-26 10:35:46.924: E/ArcGIS(11846):  at java.text.NumberFormat.parse(NumberFormat.java:545)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.esri.android.map.MapView.a(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.esri.android.map.MapView.a(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.esri.android.map.MapView.<init>(Unknown Source)
11-26 10:35:46.924: E/ArcGIS(11846):  at java.lang.reflect.Constructor.constructNative(Native Method)
11-26 10:35:46.924: E/ArcGIS(11846):  at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.createView(LayoutInflater.java:587)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:308)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.Activity.setContentView(Activity.java:1924)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.bisar.esrikaskimap.EsrikaskimapActivity.onCreate(EsrikaskimapActivity.java:18)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.Activity.performCreate(Activity.java:5206)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1083)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.ActivityThread.access$600(ActivityThread.java:140)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.os.Handler.dispatchMessage(Handler.java:99)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.os.Looper.loop(Looper.java:137)
11-26 10:35:46.924: E/ArcGIS(11846):  at android.app.ActivityThread.main(ActivityThread.java:4898)
11-26 10:35:46.924: E/ArcGIS(11846):  at java.lang.reflect.Method.invokeNative(Native Method)
11-26 10:35:46.924: E/ArcGIS(11846):  at java.lang.reflect.Method.invoke(Method.java:511)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
11-26 10:35:46.924: E/ArcGIS(11846):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
11-26 10:35:46.924: E/ArcGIS(11846):  at dalvik.system.NativeStart.main(Native Method)



What are these error ? i dont understand.

 
  initExtent = "-1.3296373526814876E7 3930962.41823043 -1.2807176545789773E7 4201243.7502468005">


when i delete this line form xml, now there is no error but map show notting

Outcomes