|
POST
|
Jessica, I don't have an exact answer to your first question, but maybe these links will get you pointed in the right direction: ArcGISLocalTiledLayer: http://resources.arcgis.com/en/help/android-sdk/api/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html Offline WindTurbine Sample app: https://github.com/Esri/offline-windturbine-inspector-android -Andy
... View more
01-24-2013
08:32 AM
|
0
|
0
|
626
|
|
POST
|
James, yes if you have an app that already is using a Location Listener you can use what are called "Mock" locations. There are a few steps to follow: 1) Add this line to your manifest permissions: <uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"> 2) Make sure in your phone settings that you have checked "Allow mock locations" 3) Create and inject the mock locations: Location mockLocation = new Location(mocLocationProvider);
mockLocation.setLatitude(-34.000);
mockLocation.setLongitude(72.000);
mockLocation.setAltitude(2000);
mockLocation.setTime(1359043067);
locationManager.setTestProviderLocation( mocLocationProvider, mockLocation);
4) To simulate movement set up a handler.postDelayed(this,<delay in ms>) and loop through an array containing your mock locations.
... View more
01-24-2013
06:01 AM
|
0
|
0
|
478
|
|
POST
|
Tom, Not sure if this is exactly what you need, but attached is an ActionScript library that shows various methods for drawing a circle on the client using radius as an input property. -Andy
... View more
01-22-2013
09:21 AM
|
0
|
0
|
970
|
|
POST
|
Eric, Flex mobile uses the Adobe Integrated Runtime (AIR) and that eliminates the need to have Flash Player on the mobile device. Yes, the code inside your mobile application can reuse code from a Flex web app. However, as you might guess mobile apps have different skinning needs, some components work better on mobile for performance reasons, and mobile apps are generally much smaller in file size than desktop Flex apps. Here are a few article, although slightly dated, that should help you get started: Mobile Development using Flex 4.5 SDK Build a Flex Mobile App in Five Minutes Using FlashBuilder 4.5 to build iOS apps 10 Essentials for Developing Commercial Flex Mobile Apps Migrating from Desktop to Mobile I hope that helps, -Andy
... View more
01-22-2013
06:01 AM
|
0
|
0
|
827
|
|
POST
|
Make sure your project contains a reference to an Android library (right click project > Properties > Android and verify that a Project Build Target is checked) If the project does contain a valid reference to an Android library, you may need to right click on your project > ArcGIS Tools > Fix project properties -Andy
... View more
11-29-2012
10:10 AM
|
0
|
0
|
578
|
|
POST
|
@mark, hmmm...I'm not clear on what you are trying to accomplish. Can you please provide details on your requirements? And, what would you like to happen in the application once the touch listener event happens? -Andy
... View more
11-29-2012
08:12 AM
|
0
|
0
|
324
|
|
POST
|
@Mark, To add to Brian's comment. As mentioned above, you can listen for a map event such as a setOnSingleTapListener and then get the graphic IDs from the graphic layer. The getGraphicsIDs() method is an overloaded method and you can find more information on it here. Once you have the graphic IDs you can either iterate through them and test for a certain condition, or just grab the first one. You can see an example of this code in the "Nearby" SDK sample. Here's the code snippet from that sample: map.setOnSingleTapListener(new OnSingleTapListener() {
private static final long serialVersionUID = 1L;
public void onSingleTap(float x, float y) {
if(callout != null){
callout.hide();
}
else
{
callout = map.getCallout();
callout.setStyle(R.xml.calloutstyle);
}
int[] graphicIDs = graphicsLayer.getGraphicIDs(x, y, 25);
if (graphicIDs != null && graphicIDs.length > 0) {
Graphic gr = graphicsLayer.getGraphic(graphicIDs[0]);
updateContent((String) gr.getAttributeValue("Rating"),
(String) gr.getAttributeValue("Title"));
Point location = (Point) gr.getGeometry();
callout.setOffset(0, -15);
callout.show(location, content);
}
}
});
... View more
11-28-2012
06:17 AM
|
0
|
0
|
1767
|
|
POST
|
Does the rest endpoint work? I tried to load it in a browser and it failed. Also check DDMS for any possible errors when the app loads. -Andy
... View more
10-29-2012
12:05 PM
|
0
|
0
|
1266
|
|
POST
|
it zooms the minimum LOD if the next level of LOD has no image, so i wonder how to do this. I think that's an internal workaround, and I'm not sure what they've done exactly. Maybe someone else on the forums has workaround code for Android? What our team has done for the other APIs when an app is designed for a specific geographic region we define polygons and zoom levels for areas where we know there are null tiles. Then set a listener on the layer and when it met the right criteria (e.g. polygon extent is within the view port and min zoom level is true) we reset the zoom level. Also note, I've been told the upcoming release is intended to include null tile support. -Andy
... View more
10-12-2012
07:11 AM
|
0
|
0
|
1181
|
|
POST
|
Dixon, can you explain the requirements for when you switch from local map to ArcGIS Online base map? Usually when you swap maps the intention is to keep the exact same extent and zoom level. And, is the ArcGIS Online base map a "WebMap" or an ArcGIS Server Map Service (REST endpoint)? If you need to change the extent and resolution/zoom level there are methods for those that you can apply that after a layer has been added to the map, for example: zoomToResolution(Point centerPt, double res)
setExtent(Geometry geometry)
-Andy
... View more
10-10-2012
08:19 AM
|
0
|
0
|
1181
|
|
POST
|
Shane, for your questions not directly related to the ArcGIS Android SDK, such as your questions about debugging in Eclipse, feel free to ping me: agup at esri dot com. Why would there be an issue with the HTTP REST requests with ArcGIS Server? There are a few ways that HTTP REST requests can go wrong, such as: - Some attribute was set incorrect in your code and ArcGIS Server couldn't interpret it properly - There was a problem in the configuration of the REST Service within ArcGIS Server that causes an error - The HTTP request was blocked by a firewall You will typically find out about these problems by inspecting the HTTP Request response that is sent back from the web server. Here are some common examples: - 404 Not Found > when a file is not found, typically the GIS service didn't get published correctly - 401 Unauthorized > you might need additional permissions to access the service - 500 Internal Server Error > there was an internal problem with your web server or ArcGIS Server configuration. -Andy
... View more
10-09-2012
08:55 AM
|
0
|
0
|
1239
|
|
POST
|
It looks like you have a null pointer exception in your AsyncTask onPostExecute event handler. Use your debugger and check the IdentifyTask input parameters as well as the result value that comes back in onPostExecute. If you need to view your HTTP REST requests with ArcGIS Server for troubleshooting then here's a post that may help: http://www.andygup.net/?p=695 -Andy
... View more
10-05-2012
02:31 PM
|
0
|
0
|
1239
|
|
POST
|
Shane, make sure to run the app in debug mode. When an app exits or crashes there is almost always a fatal error logged in logcat. Once you have the error info you should be able to narrow down the problem with something like a null pointer exception, etc. -Andy
... View more
10-04-2012
01:44 PM
|
0
|
0
|
1239
|
|
POST
|
Sorry for the confusion, the issue has been reopened. In meantime please use this workaround:
// Show the callout at the correct location.
Callout callout = mMapView.getCallout();
callout.setContent(textView);
callout.setCoordinates(point);
callout.setStyle(R.xml.callout);
// @WORKAROUND - Force map to zoom in
mMapView.zoomToResolution(point, 100);
callout.refresh();
callout.show();
-Andy
... View more
09-14-2012
10:30 AM
|
0
|
0
|
1698
|
|
POST
|
@jwmarin Good catch. I tried it on a different test phone and was able to reproduce as well. I'll submit a ticket and post my findings. -Andy
... View more
09-11-2012
06:45 AM
|
0
|
0
|
1698
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM | |
| 1 | 04-23-2025 06:56 AM | |
| 1 | 04-23-2025 07:09 AM | |
| 1 | 04-08-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-05-2025
07:24 AM
|