I licensed my app, included Esri attribution in the "About" screen of my app, and I do not use an ArcGIS Online basemap. But unlike in the old API, the Esri attribution bar ("powered by Esri") is always visible (and I must say, I find it quite irritating...). Can I disable it somehow? Is it included in all license levels?
You can use MapView.setAttributionText(boolean) to determine whether that grey bar on the bottom of the mapview is visible or not:
Here is the documentation for this:
GeoView| arcgis-android
I could no longer find a way of storing the current map state when I pause the map activity. I.e. something like "restoreState" and "retainState". This means that my map always zooms back to the inital viewpoint, not to the user's last location.
I would use MapView.getCurrentViewpoint(Viewpoint.Type) to get the viewpoint when you pause the map, following that with Viewpoint.toJson() so you can store the viewpoint in shared preferences or wherever you would like. You can then rebuild the viewpoint by calling Viewpoint.fromJson(String) and then passing that viewpoint to your mapview object.
getCurrentViewpoint()
GeoView| arcgis-android
toJson()
Viewpoint| arcgis-android
When I add and remove graphics dynamically, it occasionally happens that a removed graphic is still being displayed. I checked the size of the corresponding graphicsOverlay - it is empty, and the graphic cannot be selected. So maybe the graphic is cached somehow? Is there any way to refresh the graphicsOverlay to clear the cache?
This is interesting... I am going to have to try this and see if I can reproduce. I have another app that I wrote where I remove graphics and they no longer display.
Hope this helps!
Alexander