|
POST
|
@simra, thanks for the heads up. I was able to duplicate that on the ArcGIS app. I'm passing it on to tech support for further analysis and to write up a CR. I'm running Android v2.3.6 on an Moto Atrix. [Update: this has been logged as NIM080657 if you want to track it] -Andy
... View more
05-08-2012
07:50 AM
|
0
|
0
|
511
|
|
POST
|
@Simra, gotcha thanks. We are going ahead and creating a CR on this issue. I don't have the number yet. Just a side note for when it does get fixed, you should be able to turn the method to true without setting the OnStatusChangedListener. -Andy
... View more
05-08-2012
06:38 AM
|
0
|
0
|
1625
|
|
POST
|
@Simra, in general I'd recommend running your apps in Eclipse debug mode. That way you get access to the Eclipse debugger and DDMS/Logcat at the same time. Also, please make the following changes to your code that are in red text below. That will enable the error to show up in Logcat. Can you give this a try and let me know if anything shows up? Note: I'm getting a nullpointer exception when I run your code, which would explain why the logo isn't showing up. We are also looking into on our end. @Override
public void onStatusChanged(Object source, STATUS status) {
if (OnStatusChangedListener.STATUS.INITIALIZED == status && source == map) {
Log.d("Test", "resolution:" + map.getResolution());
try{
map.setEsriLogoVisible(true);
}
catch(Exception e)
{
Log.d("Test","OnStatusChangedListener: " + e.getMessage());
System.out.println("OnStatusChangedListener: " + e.getMessage());
}
}
if(OnStatusChangedListener.STATUS.INITIALIZATION_FAILED == status){
//Best Practice to handle initialization failures
Log.d("Test","failed: " + status.toString());
}
}
}); -Andy
... View more
05-07-2012
10:02 AM
|
0
|
0
|
1625
|
|
POST
|
@simra, yep, these problems are related to the application life cycle and that the map hasn't been fully initialized yet. Certain processes load or run slower on a phone in comparison to a browser, so it's best to simply make sure the map has loaded before doing any actions against it by setting up an OnStatusChangedListener. Here are some details on the OnStatusChangedListener: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/event/OnStatusChangedListener.html I'm not sure why the logo wouldn't show up. Did the app throw any other errors? -Andy
... View more
05-04-2012
08:40 AM
|
0
|
0
|
1625
|
|
POST
|
@petaques, Hi, I'm not a JSON expert so I can't answer most of your questions. However, you can find detailed information on our JSON response syntax. For that information, please consult the ArcGIS Server REST API specifcation: http://help.arcgis.com/EN/arcgisserver/10.0/apis/rest/index.html Also, here's a few other links that I've found to be helpful: http://json.org/ http://www.json.org/js.html -Andy
... View more
05-04-2012
08:00 AM
|
0
|
0
|
5154
|
|
POST
|
@roessera here are some guidelines to help verify what's going on when a proxy doesn't seem to be working: - Make sure you have the latest version of the ArcGIS proxy. - Make sure that the Server URL properties are configured properly. - If you are using tokens, follow the directions for the appropriate proxy (.jsp, ashx or php) for allowing tokens. - Check the Proxy's web server log files. You may have to turn on full logging first. And, don't forget to disable full logging after you are done testing. If the proxy can't connect to ArcGIS Server you should be able to see an error in the web server log. - As a last resort, run an HTTP protocol analyzer on the proxy server, for example WireShark. This will let you see and analyze the inbound and outbound HTTP connections. -Andy
... View more
05-04-2012
07:36 AM
|
0
|
0
|
3583
|
|
POST
|
In addition to what has been posted above, this is an FYI with background info for others looking to implement pinch gestures with the Android browser and JavaScript. At this time, support for multi-touch is not consistent on the Android browser across various phones and Android OS versions. It is, however, available on many of the latest phones using Android v3+. Note that jQuery and Sencha, just to mention a few, face the similar problems in supporting this. So, for now, Dojo mobile best practices are to disable scaling in the browser via the viewport metatag. You can test that pinch sitll works on a particular phone by simply removing the meta tag and re-testing your app: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/> Also, if you haven't already seen it here's a "find nearby" example of implementing Dojo mobile with the ArcGIS API for Javascript. Addt'l References: http://code.google.com/p/android/issues/detail?id=11909 http://www.sitepen.com/blog/2011/12/07/touching-and-gesturing-on-iphone-android-and-more/ -Andy
... View more
05-03-2012
02:44 PM
|
0
|
0
|
2066
|
|
POST
|
Sorry for the delay, I am checking on this and hope to get more details on when it will be fixed. -Andy
... View more
05-03-2012
08:20 AM
|
0
|
0
|
1657
|
|
POST
|
@iwaitu make sure your SDK is installed properly. Check in Eclipse to make sure there are no errors in your project. For example, you may be missing one or several of the helper libraries: [INDENT]Could not find class 'org.codehaus.jackson.JsonFactory'[/INDENT] You may need to uninstall and re-install the ArcGIS for Android SDK. -Andy
... View more
05-02-2012
12:59 PM
|
0
|
0
|
786
|
|
POST
|
@Taryon, did you try waiting until after the map load event? I don't see it listed in your post below. http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html#event:load -Andy
... View more
04-09-2012
07:00 AM
|
0
|
0
|
447
|
|
POST
|
@mjgarcia did you try running your snippet after the kml loads?
dojo.connect(kml, 'onLoad', function() {
dojo.style(dojo.byId('loading'), 'display', 'none');
// Add your snippet here
}); -Andy
... View more
04-04-2012
08:10 AM
|
0
|
0
|
1398
|
|
POST
|
@saibotehs, one way to do this if you have complex attributes is to set up a SharedObject. When the new view becomes active you can then grab the attributes from the SharedObject. The advantage of this pattern is it gives you a central location to manage all your application attributes. There's an example of this and other best practices built into this demo app: http://www.arcgis.com/home/item.html?id=f30c1e7747db417cae341fdeca2eb77e. All code is included. -Andy
... View more
04-04-2012
07:50 AM
|
0
|
0
|
531
|
|
POST
|
For anyone interested, attached is an ActionScript Class that let's you build the circle polygon in the client when using WGS84 or Web Mercator base maps. When you call the createMercatorBasedCircle() method you pass the radius value taken from the GPS. This eliminates the server round trip to a geometry service. to For a demonstration of how it works, the code is taken from this project: http://www.arcgis.com/home/item.html?id=5f3bf5febd9e4a1d8cf92b15c75b9e41 -Andy
... View more
04-03-2012
02:44 PM
|
0
|
0
|
835
|
|
POST
|
This turned out to be a bug in SDK v1.0.1. It was entered as #NIM078920. -Andy
... View more
03-09-2012
11:15 AM
|
0
|
0
|
1657
|
|
POST
|
It must be how the tiled cache was created. However, best practice is to limit the zoom-in level to the last base map level that has visible data. You can either do that when you create the service using scale dependent rendering. Or, if you want to control this on the client app, I outline a coding pattern in this forum post that should help you out: http://forums.arcgis.com/threads/51447-MapView-Zoom-in-Problem -Andy
... View more
03-05-2012
01:09 PM
|
0
|
0
|
549
|
| 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
|