google-maps-android-api-2

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq; when adding Google Maps to Android app

◇◆丶佛笑我妖孽 提交于 2019-12-24 05:01:25
问题 I am adding a Google Maps Activity to my app which is connected to a Parse server. I've simply added the maps activity and created the relevant API key and in an attempt to run the app I get the following: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.parse.starter, PID: 14204 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/internal/zzbq; at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:2) at android.app.ActivityThread

FATAL EXCEPTION: GLThread, StackOverflowError with Google maps V2

大城市里の小女人 提交于 2019-12-24 02:55:32
问题 I am implementing Google Maps V2 and i'm drawing on it delivery route received from external GPX file, device path, device current location, and location of delivery points. Thing is that it works most of the time... Error that i get (when it's not working) is next: 03-16 20:48:37.811: I/dalvikvm(16510): threadid=30: stack overflow on call to Lmaps/t/bx;.d:FLLL 03-16 20:48:37.811: I/dalvikvm(16510): method requires 40+20+0=60 bytes, fp is 0x60223318 (24 left) 03-16 20:48:37.811: I/dalvikvm

Why Touch not work on google map v2?

守給你的承諾、 提交于 2019-12-24 02:44:11
问题 I am working on Google Maps v2. I need to do some stuff on map touch, but I'm unable to get touch listener of Google Maps v2. I am inflating XML which contains fragment XML. My code is as: public class MapViewHelper { private FragmentActivity objactivity; public GoogleMap myMap=null; public MapViewHelper(FragmentActivity objactivity) { this.objactivity = objactivity; } /* * @return view of map * * @author Sandeep Tiwari */ public View getMapView() { View objView = View.inflate(objactivity, R

Change Android layout with Fragments

怎甘沉沦 提交于 2019-12-24 01:53:15
问题 I am developing an Android Activity which has two Fragments. The Activity has two possible layouts , one in Portait, and another one in Landscape. I have created the Fragments working well, but I'm having troubles when I change the orientation of the Phone/tablet. One of this Fragment is a ListFragment , with an AsyncTask to load the list data from the web. With this Fragment I don't have problems, because I can create it again. (Although it takes a while loading). The other Fragment has a

Change Android layout with Fragments

自作多情 提交于 2019-12-24 01:52:28
问题 I am developing an Android Activity which has two Fragments. The Activity has two possible layouts , one in Portait, and another one in Landscape. I have created the Fragments working well, but I'm having troubles when I change the orientation of the Phone/tablet. One of this Fragment is a ListFragment , with an AsyncTask to load the list data from the web. With this Fragment I don't have problems, because I can create it again. (Although it takes a while loading). The other Fragment has a

Embedding google maps android v2 in android

荒凉一梦 提交于 2019-12-24 00:38:43
问题 i created application in android 2.33 . i used apk v2 keys and i followed all the steps but still its showing error **xml** <?xml version="1.0" encoding="utf-8"?> <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/map" android:layout_width="match_parent" android:layout_height="match_parent" class="com.google.android.gms.maps.MapFragment" /> **Mainfest** <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.Maps.mappv2" android

how to get snapshot from Google Map V2

戏子无情 提交于 2019-12-24 00:34:57
问题 I am wondering to know about how to get snapshot from SupportMapFragment. I have no idea. Please help. Thanks for your advance. 回答1: You can try to take a screen shot of the fragment View: View view = findViewById(R.id.fragmentId); view.setDrawingCacheEnabled(true); Bitmap bitmap = view.getDrawingCache(); BitmapDrawable bitmapDrawable = new BitmapDrawable(bitmap); I haven't tested it. 回答2: To get a drawable you can implement this code: SnapshotReadyCallback callback = new

Highlight countries on Google Map for ios and android

倾然丶 夕夏残阳落幕 提交于 2019-12-23 20:40:12
问题 I am trying to achieve highlighting country on map. For iOS I found few demo Demo1 Demo2 But I am searching for the api that work for both ios and android. I looked for google map api version 1.8.1. Achieve this is only by drawing polygon on map for those certain countries? Is there any other good way to achieve this? 来源: https://stackoverflow.com/questions/25665518/highlight-countries-on-google-map-for-ios-and-android

UI Hang while replacing fragment from setOnInfoWindowClickListener interface method of Google Map

左心房为你撑大大i 提交于 2019-12-23 17:49:12
问题 I am using google map in my application and display markers. Now on click of marker window I want to replace the current fragment with other fragment. for (StoreData store : comp.getArrStoreList()) { LatLng l = new LatLng(Double.parseDouble(store.getLat()), Double.parseDouble(store.getLng())); MarkerOptions marker = new MarkerOptions() .position(l) .title(store.getName()) .snippet(store.getCity()) .icon(BitmapDescriptorFactory .defaultMarker(BitmapDescriptorFactory.HUE_AZURE)); Marker mrkr =

Disable clustering at max zoom level with Googles android-maps-utils

北战南征 提交于 2019-12-23 16:24:53
问题 I'm clustering markers on a Google map in Android using the clustering from android-maps-utils. I want to disable the clustering when the map is at it's max zoom level (ie always render individual ClusterItems if the map is at max zoom level, otherwise cluster as normal). I'm able to almost get it working by doing a test for zoom level in shouldRenderAsCluster() in a custom class extending DefaultClusterRenderer. However my solution lags one step behind the actual zoom level. For instance if