POST
|
In the function mapView.setExtent(envelope, padding) , is the padding in pixel or dp? The documentation says its dp, but after testing in different devices, I think it's in pixels, can someone verify?
... View more
10-01-2015
03:54 AM
|
0
|
1
|
2708
|
POST
|
Hi Guys, Consider the below code
RouteTask routeTask=RouteTask.createOnlineRouteTask(url,null);
RouteParameters routeParameters=routeTask.retrieveDefaultRouteTaskParameters();
[insert code to set the route stops]
routeTask.solve(routeParameters,new CallbackListener<RouteResult>() {
@Override
public void onCallback(RouteResult routeResult) {
}
@Override
public void onError(Throwable throwable) {
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(DashboardActivity.this, throwable.getMessage(), Toast.LENGTH_SHORT).show();
}
});
}
});
1. I noticed that without explicitly including a runOnUiThread statement, the Toast(or any UI related functionality) will not work inside the callback methods . Is this a bug or is this by design? Shouldn't the callbacks always run on the UI thread? 2. To perform a route Task, an instance of RouteParameters is required. From my understanding, the only way to initialise a routeParameter object is by using the retrieveDefaultRouteTaskParameters() method which is a network operation. Since there is no built-in asynchronous callback to perform retrieveDefaultRouteTaskParameters(), developers will HAVE to create an AsyncTask(or Handler) to perform this operation, so doesn't this defeat the purpose of having an async callback to solve a route task? (the same AsyncTask created earlier can be used here) The Esri sample for routing don't make use of the async methods so please correct me if I am missing something obvious here
... View more
06-10-2014
10:49 PM
|
0
|
0
|
2366
|
POST
|
We have found the memory leak and it will be fixed in our next release, v10.2.2. Thanks for everyone's help and patience with this issue. We have upgraded our application to 10.2.2 and can confirm the crashes and memory leaks have been fixed. Excellent work guys!!.
... View more
03-14-2014
07:03 AM
|
0
|
0
|
1094
|
POST
|
We have found the memory leak and it will be fixed in our next release, v10.2.2. Thanks for everyone's help and patience with this issue. We have upgraded our application to 10.2.2 and can confirm the crashes and memory leaks have been fixed. Keep up the good work android team.
... View more
03-14-2014
07:02 AM
|
0
|
0
|
1094
|
POST
|
After upgrading to 10.2.2, we are facing some issues that are related to the new animations introduced in the zoomTo and setExtent methods 1. Issues related to showing callouts map.zoomToScale(somePoint, map.getMaxScale());
map.getCallout().show((Point)somePoint.getGeometry()); Use case: To show the location of a place on the map with the place name on the callout When these statements are called together, as the map zooms and pans to the point, the callout that is shown, moves along with the map and stops at another random point when the animation ends. When the user pans the map again, the callout magically snaps back to the intended point. If these statements are reversed, map.getCallout().show((Point)somePoint.getGeometry());
map.zoomToScale(somePoint, map.getMaxScale()); then sometimes, the callout is hidden while the map zooms and pans to the selected point and once the animation has stopped, the callout appears at the intended point.This is the expected behaviour. But occasionally the callout shows on the map as the animation starts and moves along the map as the map pans to the point. Now we are using the workaround given below.
map.zoomToScale(somePoint, map.getMaxScale());
new Handler().postDelayed(new Runnable() {
public void run() {
map.getCallout().show(point);
}
}, 1500);
1500 because I noticed the zoomTo animation duration is less than 1500milliseconds. 2. Issues related to setting rotation angle and extent. map.setExtent(someFixedExtent);
map.setRotationAngle(0); Use case: To reset the extent and rotationangle. If these statements are called together and the map rotation angle was greater than 0, the map does not set the correct extent. The workaround:
if (map.getRotationAngle() == 0)
map.setExtent(someFixedExtent);
else {
map.setRotationAngle(0);
new Handler().postDelayed(new Runnable() {
public void run() {
map.setExtent(someFixedExtent);
}
}, 1500;
}
Any help is appreciated
... View more
03-14-2014
06:45 AM
|
0
|
4
|
1042
|
POST
|
Thank you marcus0202. Although, I am surprised that after your 10.2 upgrade, the memory leak has disappeared. I did many tests today using the 10.1 and 10.2 SDK, and although the memory leak problem is not as bad as the 10.1 SDK, the leak still exists. If youanalyse the heap dump after some tests , you can see multiple instances of the map activity in the memory.
... View more
02-04-2014
03:06 AM
|
0
|
0
|
1094
|
POST
|
I have been doing some tests with the hello world map sample to replicate this issue. Well..it seems that the map activity seems to leaking small amounts of memory. I am not sure if this leak is related to the ANR issue we are having occasionally when user leaves the activity.You can replicate this issue by adding a plain android activity before the Esri map activity and opening and closing the map activity couple of times and checking the heap dump. Even after invoking the garbage collector multiple times, we can still see many instances of the map activity in the heap dump. It seems that some ArcgisTiledserviceLayer object is holding a reference to the activity which prevents it from being garbage collected. I followed the steps from the video on the link below to analyse the memory leaks. http://www.youtube.com/watch?v=_CruQY55HOk My test device was a Galaxy note 8.0 with Android 4.1.2 Could you verify this issue from your end? I have already tried putting map.recycle/map=null in onDestroy method but it did not work
... View more
02-03-2014
09:34 PM
|
0
|
0
|
1094
|
POST
|
I have also been having the same issues after upgrading to the ArcGIS 10.2 SDK. Please help
... View more
01-30-2014
06:34 PM
|
0
|
0
|
691
|
POST
|
I have been facing the same issue after upgrading to ArcGIS 10.2 SDK. Any updates to solve this? I am testing on a Galaxy s3 running Android 4.3
... View more
01-29-2014
07:43 PM
|
0
|
0
|
1094
|
POST
|
I have also been facing the same issue with the Arcgis 10.2 SDK. The map freezes randomly but the pan/pinch listeners are still cappturing events. I am testing on an HTC one and Galaxy s3 running Andorid 4.3. Maybe Esri can shed some light on this issue.
... View more
01-29-2014
03:14 PM
|
0
|
0
|
242
|
POST
|
Thanks you Andrew. I noticed in your screenshots that, you have x86.jar and armebi.jar in your libs folder. How did you convert the .so files(that you get when you extract the sdk zip package) to .jar files? thanks Thomas edit:Nevermind, I think I figured it out. I zipped the folder containing the .so files and changed the extension to .jar. But when i run the app, it crashes in the layout xml because of classdef not found error.
... View more
12-30-2013
09:23 PM
|
0
|
0
|
529
|
POST
|
Hi guys, Is is possible to use the ArcGIS SDK using the new gradle build system? Thanks, Thomas
... View more
12-27-2013
08:18 AM
|
0
|
3
|
2433
|
POST
|
For our project, after much research we decided on the Xperia tablet Z. It is water and dust resistant and performs well.
... View more
11-26-2013
11:43 PM
|
0
|
0
|
234
|
POST
|
Are you sure, there is not limit set to the arcgis server?
... View more
11-25-2013
07:15 PM
|
0
|
0
|
211
|
POST
|
I am trying to plot a route from a json string from server. The json string consists of all the points that comprises of the route geometry. How can I do this? I am able to parse json to get all the points, but how do i plot it in the map? Any help is much appreciated geometry: { paths: [ [INDENT][ [ 6156798.546399999, 2909067.884300001], [ 6156799.397500001, 2909012.359099999 ], [ 6156798.2842999995, 2908975.429200001 ], [ 6156799.397500001, 2908915.1105000004 ], [ 6156807.189800002, 2908857.2540000007 ] ] [/INDENT] ] }
... View more
11-19-2013
09:40 AM
|
0
|
0
|
411
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|