POST
|
have you solve the problem? could you share? that would be appreciated Thanks
... View more
09-06-2013
08:09 AM
|
0
|
0
|
199
|
POST
|
have you solve the problem yet, can you share it? that would be appreciated Thanks.
... View more
09-06-2013
08:05 AM
|
0
|
0
|
169
|
POST
|
have you solve the problem? can you share? that would be appreciated Thanks
... View more
09-06-2013
08:00 AM
|
0
|
0
|
169
|
POST
|
Problem solved, Android SDK only work on device but not on emulator
... View more
09-02-2013
05:36 AM
|
0
|
0
|
223
|
POST
|
why popupInfo always return null value? if (featureLayer == null) return; PopupInfo popupInfo = featureLayer.getPopupInfo(layerID); if (popupInfo == null) return;
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
map = new MapView(this);
ArcGISTiledMapServiceLayer basemap = new ArcGISTiledMapServiceLayer("http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
ArcGISFeatureLayer fl1 = new ArcGISFeatureLayer("http://sampleserver5a.arcgisonline.com/arcgis/rest/services/LocalGovernment/Recreation/FeatureServer/0",ArcGISFeatureLayer.MODE.ONDEMAND);
map.addLayer(basemap);
map.addLayer(fl1);
setContentView(map);
map.setOnLongPressListener(new OnLongPressListener() {
private static final long serialVersionUID = 1L;
private ArcGISFeatureLayer featureLayer = null;
public void onLongPress(float x, float y) {
if (map.isLoaded()) {
if (progressDialog != null && progressDialog.isShowing() && count.intValue() == 0)
progressDialog.dismiss();
// Get the point featurelayer
Layer[] layers = map.getLayers();
for (Layer layer : layers) {
if (layer instanceof ArcGISFeatureLayer) {
ArcGISFeatureLayer fl = (ArcGISFeatureLayer) layer;
if (fl.getGeometryType() == Geometry.Type.POINT) {
featureLayer = fl;
break;
}
}
}
int layerID = (int) featureLayer.getID();
if (featureLayer == null)
return;
PopupInfo popupInfo = featureLayer.getPopupInfo(layerID);
if (popupInfo == null)
return;
// Create a new graphic
Point point = map.toMapPoint(x, y);
Graphic graphic;
FeatureType[] types = featureLayer.getTypes();
if (types == null || types.length < 1) {
FeatureTemplate[] templates = featureLayer.getTemplates();
if (templates == null || templates.length < 1) {
graphic = new Graphic(point, null);
}
else {
graphic = featureLayer.createFeatureWithTemplate(templates[0], point);
}
}
else {
graphic = featureLayer.createFeatureWithType(featureLayer.getTypes()[0], point);
}
// Instantiate a PopupContainer
popupContainer = new PopupContainer(map);
// Add Popup
Popup popup = featureLayer.createPopup(map, 0, graphic);
popup.setEditMode(true);
popupContainer.addPopup(popup);
createEditorBar(featureLayer, false);
// Create a dialog for the popups and display it.
popupDialog = new PopupDialog(map.getContext(), popupContainer);
popupDialog.show();
}
}
});
}
... View more
08-30-2013
06:45 PM
|
0
|
1
|
3173
|
POST
|
Thanks for your quick response, Mr. Dan ONeill Samsung Galaxy W I8150 and android emulator
... View more
08-23-2013
07:20 PM
|
0
|
0
|
755
|
POST
|
Thanks for your quick response, Mr. Dan ONeill Did you update the sample? i used the ArcGIS for Android version 10.1.1.201306271100 sample Use your own data? No , i used the original code using online data What version of the Android Support Library are you using? Android Support Library 18 What device are you deploying to? Android 4.3 Jelly Bean
... View more
08-22-2013
12:37 PM
|
0
|
0
|
755
|
POST
|
Agreed! Please share the reproducible code here as well if you can. i tried the PopupInWebmapForEditing sample. i'm using 1. Eclipse Java EE IDE for Web Developers. Helios Service Release 2 and Android Developer Tools v22.0.5-757759 2. ArcGISAndroidSDK_v10.1.1-u1.zip. 3. jdk-7u25-windows-x64 i think the problem at the "int[] ids = featureLayer.getGraphicIDs(x, y, tolerance);" protected Graphic[] doInBackground(ArcGISFeatureLayer... params) { for (ArcGISFeatureLayer featureLayer : params) { this.featureLayer = featureLayer; // Retrieve graphic ids near the point. int[] ids = featureLayer.getGraphicIDs(x, y, tolerance); if (ids != null && ids.length > 0) { ArrayList<Graphic> graphics = new ArrayList<Graphic>(); for (int id : ids) { // Obtain graphic based on the id. Graphic g = featureLayer.getGraphic(id); if (g == null) continue; graphics.add(g); } // Return an array of graphics near the point. return graphics.toArray(new Graphic[0]); } } return null; }
... View more
08-21-2013
05:26 PM
|
0
|
0
|
755
|
POST
|
i have the same problem using ArcGISAndroidSDK_v10.1.1-u1 from http://www.esri.com/apps/products/do...downloadid=982 but the error was different 08-15 20:10:10.505: E/MapCore(823): Frame_buffer_OGL::init_ FrameBufferOGLTexture2D: gl error = 502 08-15 20:10:10.558: A/libc(823): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 836 (Thread-78)
... View more
08-21-2013
03:57 AM
|
0
|
0
|
755
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|