android-mapview

Unexplained IncompatibleClassChangeError In Stable Released App Caused by GoogleMaps

强颜欢笑 提交于 2019-12-07 06:56:30
问题 I have just received this strange crash report from a user in my Google Play Developer Console. The app is stable at the moment and this is the first time I have seen this crash. It has been in release for 3/4 months now. The device was a Galaxy S5 running Android Version 5.0. My initial thoughts is Google Play Services has updated causing issues. Any better offers? java.lang.IncompatibleClassChangeError: Class 'java.lang.reflect.ArtMethod' does not implement interface 'android.os.Parcelable

Maps v2 marker animation - fade in and out

会有一股神秘感。 提交于 2019-12-07 06:30:25
问题 How would one fade in and out a GoogleMap marker? This is how I add a marker to the Map: marker = map.addMarker(new MarkerOptions() .position(point) .title(title) .snippet(text) .icon(BitmapDescriptorFactory.fromResource(R.drawable.marker)) ); 回答1: With Google Play services 4.0+ you can use Marker.setAlpha in conjunction with Handler that posts some Runnable every few milliseconds. The code will be similar to my answer here Drop marker slowly from top of screen to location on android map V2.

open street maps (osmdroid) shows grey tiles not map in PC

北城余情 提交于 2019-12-07 05:20:57
问题 I am using osmdroid to get open Street maps in my app. I had build my project with the needed jars (osmdroid) and added all needed permissions in the manifest. But when I try to debug my app in android emulator (adt eclipse) I am not able to see the map, only grey tiles. My project is working fine because if I debug in a smartphone I am able to see the map, the problem is only with the emulator. I have done some research but I only found information of google maps solutions but not open

Mapview and Fragment

一个人想着一个人 提交于 2019-12-07 04:46:46
问题 I've seen some topics some months ago, about the fact that using (Google)MapView inside a Fragment was a bit tricky/impossible. I would like to know if atm (June) there is a workaround ? My application (Android 3.0) is essentially working with the Fragment system and I need to display a map in one of these fragments. 回答1: Currently I only know of one solution. I stumbled across this when I ran into the same problem. https://github.com/petedoyle/android-support-v4-googlemaps. EDIT Here is a

Android Google Map not loading in activity small layout

血红的双手。 提交于 2019-12-07 00:29:46
In my application i'm using map view in activity at bottom side.but map doesn't load properly.after clicking on map 2-3 time its shows clear map.& when same map if load in full view it's loading clearly. What is the solution for this? screen shot is- <com.google.android.gms.maps.MapView android:id="@+id/map" android:layout_width="fill_parent" android:layout_height="200dp" android:layout_margin="10dp" /> java code- try { MapsInitializer.initialize(getApplicationContext()); } catch (GooglePlayServicesNotAvailableException e) { // TODO Auto-generated catch block e.printStackTrace(); } switch

Getting xml data in DetailView from a map view (Iphone IOS)

旧城冷巷雨未停 提交于 2019-12-06 21:50:41
We are trying to create a mapview with annotations loaded from a xml file. This works so far, and is making use of the KMLViewer code on the apple developer library. Now we are trying to load the data from the XML file into the detailview but only the corresponding entry. So when you click on details on a city for instance, details must be loaded from the xml file of that city. We are trying for days now but just don't know where to start. We have the following code now: detailviewcontroller.m #import "DetailViewController.h" @implementation DetailViewController @synthesize address; //

Disable pan/zoom in com.google.android.maps.MapView

只谈情不闲聊 提交于 2019-12-06 18:58:51
问题 How can i disable the panning/zooming functionality of a MapView (not the zoom controls, i want a wholly static map)? I've also noticed that touching the map doesn't seem to trigger the MapView onClickListener, could anyone elaborate why? 回答1: Use android:clickable="false" in your layout file. 回答2: For version 2 of the Google Maps API for Android, this is the way: map.getUiSettings().setScrollGesturesEnabled(false); 回答3: This is gauranteed to work mapView.getMap().getUiSettings()

android generate bitmap from google map without mapView

懵懂的女人 提交于 2019-12-06 16:52:46
问题 I want to generate a bitmap file using google maps without passing data through a mapView, like a background thread (downloading tiles in order to write the bitmap) Does anyone has an idea? an example is: entering coordinates and after clicking a button, the .png is generated in the SD Card, containing the COMPLETE loaded tiles. any proposals? thanks!!! 回答1: This method returns url with map image public static String getMapUrl(Double lat, Double lon, int width, int height) { final String

Android mapview partially loading tiles

有些话、适合烂在心里 提交于 2019-12-06 16:31:34
I have built an android application which has a single mapview. I have a bug where the map view occasionally has missing tiles. The map view is not completely blank some tiles appear but not all of them. All the answers here relate to API Keys or issues with having multiple mapviews in one app. This is not the problem. It occurs intermittently, approximately one in every five times I start the application after clearing all data out of the app. So its typical seen on new installations. It only occurs on Android 2.2 devices (Samsung Galaxy S definately) Note the logs show: 07-21 17:11:52.274:

How to display smooth movement of current location in google map android

帅比萌擦擦* 提交于 2019-12-06 15:34:12
问题 I am implementing a map navigation application. I get device's current location every 1000 milliseconds and draw a polyline, from the current location to fixed marker point. But when using device inside a vehicle, polyline and current location update not animating like uber or google-map. It's changing suddenly from one point to another. How to get a smooth animation of the current location change. 回答1: you have to try this way it will help you private void animateMarkerNew(final LatLng