|
POST
|
I've confirmed that this problem has been fixed in the upcoming v2.0 release of the SDK and the ArcGIS for Android app. -Andy
... View more
06-12-2012
02:02 PM
|
0
|
0
|
1685
|
|
POST
|
If you are using a tiled map with spatial reference 102100, then the value you get back from the location variable in the following code snippet should be Web Mercator: Point location = (Point) gr.getGeometry(); Make sure you are seeing/using the raw numbers for x,y. I suspect you are just missing the "eX" portion of the number. Check them in the debugger and they should look like 1.888e7, where 1.888e7 = 18�??880�??000. I don't know of any way to drag points at the moment with v1.1.1. One other option is you could listen for a long press and display a pop-up with an option to delete. -Andy
... View more
06-11-2012
07:23 AM
|
0
|
0
|
1759
|
|
POST
|
Edward, thanks for the heads-up. It sounds like you can reproduce the problem related to Bing. Do you have a support contract? If so, we would greatly appreciate it if you can open a ticket so this gets logged. Will that be possible? This would be very helpful. Support can enter the problem along with your device OS and any other dependencies in your application. In regards to support for Fragments, there are several open items for the core team to investigate. -Andy
... View more
06-08-2012
09:12 AM
|
0
|
0
|
417
|
|
POST
|
I think that the problem is with android:configChanges="orientation". It prevents the activity being recreated when the orientation of the device is changed, so that may be why the activity is unresponsive? Should I do something specific in onConfigurationChanged? Good question, I'm not certain how this problem relates to ActionBarSherlock, or what changes to make to onConfigurationChanged. On our end, we are investigating the current requirement, in certain circumstances. for the inclusion of android:configChanges="orientation" and android:configChanges="orientation|screenSize" (for versions of Android OS 3.2 and higher) in the AndroidManifest. I do know that if you manually handle onConfigurationChanged you also have to reset any element. Here's a snippet from the Android Help doc: Remember: When you declare your activity to handle a configuration change, you are responsible for resetting any elements for which you provide alternatives. If you declare your activity to handle the orientation change and have images that should change between landscape and portrait, you must re-assign each resource to each element during onConfigurationChanged(). -Andy
... View more
06-06-2012
07:40 AM
|
0
|
0
|
2161
|
|
POST
|
Olli, have you tried your app on a different phone? It's possible the blurry accuracy circle has something to do with your phone's operating system and its support for Open GL ES 2.0. Also, do you have a local Esri distributor you can contact on this? I'm not sure how to duplicate this error, as I haven't seen it. In regards to the center graphic and accuracy circle, those are created automatically when you start() the LocationService: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/LocationService.html -Andy
... View more
06-06-2012
06:30 AM
|
0
|
0
|
1021
|
|
POST
|
The Style problem is related to ActionBarSherlock. Here's a post that might help: http://stackoverflow.com/questions/9686818/actionbarsherlock-style-contains-key-with-bad-entry -Andy
... View more
06-06-2012
06:15 AM
|
0
|
0
|
2161
|
|
POST
|
Related to the app crashing when you change orientation, try adding the following line to your AndroidManifest android:configChanges="orientation", for example: <activity android:name=".AGSLocatorActivity"
android:label="@string/app_name"
android:configChanges="orientation">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.esri.arcgis.android.agslocator.WebviewActivity">
</activity>
-Andy
... View more
06-05-2012
03:27 PM
|
0
|
0
|
2161
|
|
POST
|
You're close, try something like this: HashMap<String, Object> hashMap = new HashMap<String, Object>();
hashMap.put("Title", title);
hashMap.put("BodyText", bodyText);
graphicsLayer.addGraphic(new Graphic(point, symbol, hashMap, null)); -Andy
... View more
06-05-2012
02:46 PM
|
0
|
0
|
1759
|
|
POST
|
Amelie, just reiterating that I haven't worked much with Fragments, however I have seen similar errors to the last two lines you posted: 06-05 13:25:40.282: I/GLMapCore(10355): TexturesManager::releaseGraphicsHardwareResources 06-05 13:25:40.282: E/libEGL(10355): call to OpenGL ES API with no current context (logged once per thread) The only thing I can think of is make sure the AndroidManifest is configured properly. There may be a property that is needed. Hopefully someone else who has used Fragments can jump in. http://developer.android.com/guide/topics/manifest/activity-element.html -Andy
... View more
06-05-2012
09:47 AM
|
0
|
0
|
2161
|
|
POST
|
Olli, what happens if you just use the default accuracy circle settings? Does the circle look okay then? To do that comment out the following line: //locationService.setAccuracyCircleOn(false); In regards to the SimpleMarkerSymbol, does it work for you if you try a different style? I was able to duplicate that STYLE.X didn't work for me either. SimpleMarkerSymbol s = new SimpleMarkerSymbol(Color.BLUE,15,com.esri.core.symbol.SimpleMarkerSymbol.STYLE.CIRCLE); -Andy
... View more
06-05-2012
09:24 AM
|
0
|
0
|
1021
|
|
POST
|
li, please provide more details on your use case and what you are trying to accomplish, for example are you working on routing on road networks? There are plans to include routing samples in the next upcoming release, but here are currently no supported samples. -Andy
... View more
06-05-2012
09:06 AM
|
0
|
0
|
361
|
|
POST
|
Amelie, I haven't used Fragments much, but...logcat should give you some hints on what and where the problem is. I suggest posting the crash or FATAL error portion from logcat. -Andy
... View more
06-05-2012
08:58 AM
|
0
|
0
|
2161
|
|
POST
|
Brian, you can use the updateGraphic() method to move a graphic. Currently there is no move() method that lets you specify a distance since the updateGraphic() method is projection agnostic. Here's a link: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/android/map/GraphicsLayer.html#updateGraphic(int, com.esri.core.geometry.Geometry) If you want to see how to create a point that's a certain distance away from a starting point, I have some JavaScript and Flex code that shows how to do that on the client. I haven't converted it to Java yet. If interested email me: agup at esri dot com. The Nearby Sample shows how to use an OnSingleTapListener and then iterate through the graphics until you find the one with the correct ID: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/index.html#//01190000002s000000 Here's the pattern: int[] graphicIDs = graphicsLayer.getGraphicIDs(x, y, 25);
if (graphicIDs != null && graphicIDs.length > 0) {
//Graphic gr = graphics[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
06-05-2012
08:54 AM
|
0
|
0
|
1759
|
|
POST
|
The Nearby sample contains an example of how to build a custom callout with rating stars: http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/0119/01190000002s000000.htm In general, the pattern is to use getCallout() like this: // display the result in map callout
String msg = "Address:"
+ result.getAddressFields().get("Address")
+ "\n" + "City:"
+ result.getAddressFields().get("City") + "\n"
+ " State:"
+ result.getAddressFields().get("State") + "\n"
+ " Zip:"
+ result.getAddressFields().get("Zip");
map.getCallout().show(locationPoint, message(msg)); -Andy
... View more
06-05-2012
07:28 AM
|
0
|
0
|
464
|
|
POST
|
Aleksi, I'm not able to duplicate...I have an app that rotates on pinch and the setOnTouchListener override works just fine on several phones. Do you have an OnPinchListener set in addition to a setOnTouchListener? -Andy
... View more
06-05-2012
07:15 AM
|
0
|
0
|
602
|
| 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
|