Does the Android Beta API run on honeycomb? The following working code fails on a motorola xoom.
This code crashes on honeycomb: View vw = View.inflate(this, R.layout.fire_annotate, null);
//get a handle to the mapview place holder LinearLayout placeHolder = (LinearLayout) vw.findViewById(R.id.map_view_place_holder); map = new MapView(this); ArcGISTiledMapServiceLayer layer = new ArcGISTiledMapServiceLayer(this,"http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"); map.addLayer(layer);
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.FILL_PARENT, LinearLayout.LayoutParams.FILL_PARENT); placeHolder.addView(map,lp); setContentView(vw);
exception is
09-14 20:49:18.410: ERROR/(20457): statfs /mnt/sdcard/ArcGIS failed, errno: 2 09-14 20:49:18.410: ERROR/ArcGIS(20457): Failed to initialize the layer:http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer 09-14 20:49:18.410: ERROR/ArcGIS(20457): java.lang.IllegalArgumentException 09-14 20:49:18.410: ERROR/ArcGIS(20457): at android.os.StatFs.native_setup(Native Method) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at android.os.StatFs.<init>(StatFs.java:32) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.a.g.a(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.a.f.<init>(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.a.g.a(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initModel(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.map.ags.ArcGISTiledMapServiceLayer.initModel(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.map.LayerView.initLayer(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.map.MapView$1.a(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at com.esri.android.map.MapView$1.call(Unknown Source) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at java.util.concurrent.FutureTask.run(FutureTask.java:137) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:574) 09-14 20:49:18.410: ERROR/ArcGIS(20457): at java.lang.Thread.run(Thread.java:1020)