|
POST
|
Hi Please could you share the code showing how attr and pGeom are created? GeodatabaseFeature(attr, pGeom, pGdbFeatureTable); Also to the TableException (described at the URL below) contain any error description? https://developers.arcgis.com/android/api-reference/reference/com/esri/core/geodatabase/GeodatabaseFeature.html
... View more
04-23-2014
08:36 AM
|
0
|
0
|
1558
|
|
POST
|
Hi Bluehy135, Please, Can you describe your scenario? Could you share some of the code and any error messages? Are you following a workflow like the one described in the Edit Features Guide? https://developers.arcgis.com/android/guide/edit-features.htm
... View more
04-22-2014
08:05 AM
|
0
|
0
|
1558
|
|
POST
|
Hi Matt, I recently added to another post a description of creating .geodatabase files, placing them on an Android device, accessing feature tables, creating FeatureLayers and adding them to a MapView. Please have a look over there and let me know if it helps you. http://forums.arcgis.com/threads/105643-How-to-import-an-geodatabase-to-my-Android-project
... View more
04-21-2014
03:33 PM
|
0
|
0
|
703
|
|
POST
|
Hi Zijian and Lisandro, In your examples, are you using file geodatabases? GDB_Test.gdb (Zijian) RH_SampleData.gdb (Lisandro). When using a geodatabase locally on an Android device you need to use a runtime geodatabase. For a quick test or example, You could create runtime content using ArcMap. On ArcMap's File menu, point to Share as, and click Runtime content. There is a bit more to it than just clicking a menu choice. You can read more about the workflows here: http://resources.arcgis.com/en/help/main/10.2/index.html#//00660000045q000000 ArcMap creates a .geodatabase file, that you can place on the Android device. For example, using a file browser I copied the output city.geodatabase onto my phone's sd card. Then in Eclipse using the DDMS perspective you can see the file on the device and learn the folder names for the sd card. In code I make a variable to reference that location: String gdbPath = "/storage/extSdCard/ArcGISApp/city.geodatabase"; //In a try...catch I create a Geodatabase object and use the path. Geodatabase geodatabase = new Geodatabase(gdbPath); //From there you can get FeatureTables by their index position. This line gets the first table using 0 as the index. GeodatabaseFeatureTable geodatabaseFeatureTable = geodatabase.getGeodatabaseFeatureTableByLayerId(0); //You can then use the table to create a feature layer and add the layer to the map. FeatureLayer featureLayer = new FeatureLayer(geodatabaseFeatureTable); mMapView.addLayer(featureLayer); Please check out this page for more details on the patterns of working with offline data: https://developers.arcgis.com/android/guide/create-an-offline-map.htm Please let me know if this helps.
... View more
04-21-2014
03:26 PM
|
0
|
0
|
1822
|
|
POST
|
Without using any Esri pieces, can you run Android's HelloWorld in the emulator? Are you set up to use the HAXM Emulator accelerator? http://www.developer.com/ws/android/development-tools/haxm-speeds-up-the-android-emulator.html What are all your property settings when you use AVD (Android Virtual Device manager) to create the emulator? [ATTACH=CONFIG]33180[/ATTACH] I know its not 19 like you are using, but you might give it a try to see if you can get one working. I use this list as my guide when building one. May be you could share yours too. AVD Name: YourNameNexus7 name can vary Device: 5.1�?� WVGA (will display nice and large) CPU Intel Atom (x86) Target: Android 4.0.3 �?? API Level 15 RAM: 512 (max allowable is 768) VM Heap: 64 Internal Storage: 200M SD Card: Size: 512MiB Emulation Options: Check Use Host GPU (enable) Please let me know what happens. Thanks!
... View more
04-17-2014
01:41 PM
|
0
|
0
|
674
|
|
POST
|
Here are a few links that may be helpful. This link describes what ArcGIS Online services do and don't require Service Credits: http://www.esri.com/software/arcgis/arcgisonline/credits And the FAQ also addresses costs, credits, and free use. http://doc.arcgis.com/en/arcgis-online/reference/faq.htm#anchor6 I haven't used Google or Bing, so I am unsure there.
... View more
04-17-2014
01:29 PM
|
0
|
0
|
322
|
|
POST
|
Hi If I understand correctly, you want to work totally disconnected, no network connection, no wi fi, you want all the data on the device, and need to Query some layers and see the query results. You can load a tile package on the device or its SD card to provide a basemap. You can also load a runtime .geodatabase on the device or its SD card to provide a operational layers. Your code can add or remove layers at any time. Here is a block of code from the CreateRuntimeGeodatabase sample. It shows how you can create FeatureLayers from GdbFeatureTables in the .geodatabase local on the device. // Geodatabase contains GdbFeatureTables representing attribute data // and/or spatial data. If GdbFeatureTable has geometry add it to // the MapView as a Feature Layer if (localGdb != null) { for (GeodatabaseFeatureTable gdbFeatureTable : localGdb.getGeodatabaseTables()) { if (gdbFeatureTable.hasGeometry()) mMapView.addLayer(new FeatureLayer(gdbFeatureTable)); } } You also want to Query. Please take a look at FeatureLayer in the API: https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/FeatureLayer.html FeatureLayer has a selectFeatures method that takes in, QueryParameters. It is not exactly QueryTask, but it performs in a similar way. The QueryParams have a where clause, geometry, spatial relationship and other similarities to QueryTask Query, but it all happens locally on the device without being connected. https://developers.arcgis.com/android/api-reference/reference/com/esri/core/tasks/query/QueryParameters.html Please let me know if this might work for your app.
... View more
04-17-2014
12:18 PM
|
0
|
0
|
839
|
|
POST
|
Hi Christian, I am not sure this will help, but the this Sandbox sample has a line of code at line 40: var featureAttributes = results.features.attributes; It appears to get the attributes, for the current feature . Then on the page lists the attributes by name and value. Here is the Sandbox sample: http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=query_nomap Since it is in a sandbox you can play around with the code to get different displays. For example alter the push on line 42: resultItems.push("<b>" + attr + ":</b> " ); and it displays the field names only, the values are omitted. Another option is to look at the Rest api to see what is really returned in the feature set, to see the features, attributes, attribute values, and geometry. http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Feature/02r3000000pr000000/ { "feature" : { "attributes" : { "objectid" : 1, "fdate" : 932428800000, "resolution" : 3, "gnis_id" : null, "gnis_name" : null, "lengthkm" : 0.024, "reachcode" : "11070101001016", "flowdir" : 1, "wbareacomid" : null, "ftype" : 558, "fcode" : 55800, "enabled" : 1 } , "geometry" : { "paths" : [ [ [-95.9899452281111, 38.1345878074741], [-95.9898896947778, 38.1344644074744], [-95.9899164947778, 38.1343866074744] ] ] } } } Also you could just hit the Rest endpoint of the Layer to see its fields http://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0 Fields: objectid ( type: esriFieldTypeOID , alias: OBJECTID ) areaname ( type: esriFieldTypeString , alias: AREANAME , length: 50 ) class ( type: esriFieldTypeString , alias: CLASS , length: 30 ) st ( type: esriFieldTypeString , alias: ST , length: 2 ) capital ( type: esriFieldTypeString , alias: CAPITAL , length: 1 ) pop2000 ( type: esriFieldTypeInteger , alias: POP2000 ) shape ( type: esriFieldTypeGeometry , alias: Shape ) I hope this helps. If not may be add to your post and describe more about how you want to use the fields.
... View more
04-16-2014
02:06 PM
|
0
|
0
|
837
|
|
POST
|
Hi Amira, Could you please post some more information abuot the issue? For example, are you testing on an actual device or using the emulator? Could you share any error messages that appear in the LogCat or Console windows?
... View more
04-16-2014
07:58 AM
|
0
|
0
|
674
|
|
POST
|
Hi Jack, It looks like you are using a URL that points to hosted FeatureService that you published to ArcGIS Online. If that is true then the line of code that defines the dmsl variable is using that ArcGISDynamicMapServiceLayer class, but is passing in a FeatureService. You could change the class to ArcGISFeatureLayer and add a MODE for the second argument. Then that layer should display. displayFeatureLayer = new ArcGISFeatureLayer("http://services1.arcgis.com/......./ArcGIS/rest/services/......./FeatureServer/2", MODE.SNAPSHOT ); mapView.addLayer(displayFeatureLayer); Please let me know if I am understanding the situation correctly and if this helps.
... View more
04-15-2014
09:44 AM
|
0
|
0
|
423
|
|
POST
|
Hi Please have a look at this Guide topic Create an Offline map: https://developers.arcgis.com/android/guide/create-an-offline-map.htm Also look that this topic - Create a Local Runtime Geodatbase https://developers.arcgis.com/android/sample-code/create-runtime-geodatabase/ Please let me know if this helps you learn how to work with offline vector data.
... View more
04-14-2014
02:56 PM
|
0
|
0
|
839
|
|
POST
|
Michael, Please have a look at the doc for the REST API: http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#//02r30000025t000000 A note in there mentions that you should: enable "Allow Clients to Export Cache Tiles" in advanced caching page of the Service Editor. Please let me know of this was helpful.
... View more
04-10-2014
01:04 PM
|
0
|
0
|
927
|
|
POST
|
Hi When I look at the rest endpoint for the Wildfire feature service: http://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Wildfire/FeatureServer And scroll all the way to the bottom, I can see the Sync and Replica Operations are available: Supported Operations: Query Apply Edits Create Replica Synchronize Replica Unregister Replica The other feature services you mention only show Query and Apply Edits. Supported Operations: Query Apply Edits Please have a look at this Guide topic Create and Offline map: https://developers.arcgis.com/android/guide/create-an-offline-map.htm One of its topics describes 'a sync-enabled feature service' and creating one. Please let me know if this helps get you any closer to solving the issue.
... View more
04-10-2014
12:33 PM
|
0
|
0
|
428
|
|
POST
|
Hi Gina, Just a followup. Since you say that you are looking in MyContent and you can see your service listed there, can have a look at the other columns that describe that service, like Type and Shared. For Shared it could be Not Shared, Shared with Everyone, or shared with a specific group. Is your's Everyone? For Type, does it show up as a Feature Service, Tiled Map Service, Web Map? If it's a FeatureService you may need to use a class besides ArcGISDynamicMapServiceLayer. You also mentioned a sample, the Attribute Editor: https://developers.arcgis.com/android/sample-code/attribute-editor/ Check out the sample code, copied and pasted below. See how their ArcGISDynamicMapServiceLayer (first bit of code below) points to a MapServer/Map service? And then the second bit of code points to a FeatureServer/Feature Service. If the Item in Your Content is a Feature Service, you should use the ArcGISFeatureLayer class instead of ArcGISDynamicMapServiceLayer. dmsl = new ArcGISDynamicMapServiceLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/MapServer"); mapView.addLayer(dmsl); featureLayer = new ArcGISFeatureLayer( "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Petroleum/KSFields/FeatureServer/0", MODE.SELECTION); setContentView(mapView); If you could share the URL to your service and the bit of code where you instantiate the class, it would be helpful. I hope this helps in some way.
... View more
04-10-2014
12:14 PM
|
0
|
0
|
1264
|
|
POST
|
You might try setting the RAM to 512. And have a look at the 5 steps in this other posting: http://forums.arcgis.com/threads/99926-unfortunately-HelloWorld-has-stoped?p=367162#post367162 Please let us know if it works!
... View more
02-20-2014
12:40 PM
|
0
|
0
|
809
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-21-2025 02:22 PM | |
| 7 | 01-21-2025 12:33 PM | |
| 3 | 01-07-2025 09:00 AM | |
| 1 | 06-01-2020 02:26 PM | |
| 1 | 08-23-2018 07:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
Thursday
|