google-maps-api-2

java.lang.NoClassDefFoundError: com.google.android.gms.common.internal.zzd

早过忘川 提交于 2019-11-28 01:20:50
Using Maps api v2 and it works perfectly with 4.4 , 5.0, 5.1, 5.1.1 , 6 but app crashes when I try 4.2.2. I've been doing lots of research but nothing seems to work. Here's the complete log. FATAL EXCEPTION: main java.lang.NoClassDefFoundError: com.google.android.gms.common. at com.google.android.gms.measurement.internal.zzk$zza.get( at com.google.android.gms.measurement.internal.zzc.zzkG( at com.google.android.gms.measurement.internal.zzr.<init>( at com.google.android.gms.measurement.internal.zzx.zzb( at com.google.android.gms.measurement.internal.zzt.<init>( at com.google.android.gms

How to attach a flexible marker on map something like Uber and Lyft?

自闭症网瘾萝莉.ら 提交于 2019-11-28 00:09:41
How to attach a flexible marker on map something like Uber and Lyft ? am using Google maps v2. Basically, i want to display a marker on map while the position of the marker is changed upon moving the map. edited: Ok i solved my problem. first : add an imageview to the same layout and position equal to center. second: to get the coordinate of the center of the map use the following approach 1- get viewgroup ( FrameLayout ) in my case where the map fragment is located. FrameLayout myContainer = (FrameLayout) findViewById(R.id.content_frame); int mapHeight = myContainer.getHeight(); int mapWidth

Google Maps V2 shows blank screen on android 2.2

最后都变了- 提交于 2019-11-27 23:43:11
I tried following a tutorial on Android Maps V2 Quick Start But when I run the app, a blank map screen is shown. My phone uses android 2.2.1. This is what shows in logcat: 12-07 18:07:52.479: W/dalvikvm(1654): VFY: unable to resolve instance field 24 12-07 18:07:53.129: W/dalvikvm(1654): Unable to resolve superclass of Lmaps/a/du; (411) 12-07 18:07:53.129: W/dalvikvm(1654): Link of class 'Lmaps/a/du;' failed 12-07 18:07:53.139: W/dalvikvm(1654): Unable to resolve superclass of Lmaps/a/ej; (2363) 12-07 18:07:53.139: W/dalvikvm(1654): Link of class 'Lmaps/a/ej;' failed 12-07 18:07:53.139: W

While Make sign APK of Google map (Failed to load map Could not contact Google servers) this error accured

老子叫甜甜 提交于 2019-11-27 22:37:25
In my application I will implement Google Maps example However: When I directly run the application the map will run perfectly While I can make sign apk (make Key Store file and related to key Store Apk) then the map will not work For this problem I am tried so many ideas like Create an another and another API KEY of my app related to package Put extra permission in Android Manifest File (latest Manifest permission are given below) Can someone help? <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width=

Google Maps not loading after publishing on play store even after updating SHA 1 fingerprint for release key

冷暖自知 提交于 2019-11-27 20:50:59
A newbie here to google maps api and android app development. I am facing some strange issue and struggling with this from two days. I have developed an app in which I have used Google maps. I have launched the app to play store. The google map loads perfectly fine when I install the signed apk directly to mobile but not when I install through play store. I have updated google maps api console with release key SHA 1 fingerprint. I am not able to find any solutions online also and did not get any support from google support team also. Somebody please help! Chandan Suri If u have enabled the App

Multiple line or break line in .snippet (google maps apiv2)

ぃ、小莉子 提交于 2019-11-27 20:48:56
I'm developing in google maps APIv2. The issue that I'm facing now is I only able to add in one line of word in info windows/snippet. But the output that I want is able to display in break line form as example show below. So is there any possible methods to solve it? Example: Coordinate: 03.05085, 101.70506 Speed Limit: 80 km/h public class MainActivity extends FragmentActivity { static final LatLng SgBesi = new LatLng(03.05085, 101.76022); static final LatLng JB = new LatLng(1.48322, 103.69065); private GoogleMap map; @Override protected void onCreate(Bundle savedInstanceState) { super

Google Map v2 Marker Animation

半城伤御伤魂 提交于 2019-11-27 19:32:51
Do anyone have idea how this animation's implementation is possible in google map api v2. Check out this here. I would like to know how this is done. Please let me know if anyone have any sample code regarding this. Thanks in advance. D-32 I found a solution that worked for me: final LatLng target = NEW_LOCATION; final long duration = 400; final Handler handler = new Handler(); final long start = SystemClock.uptimeMillis(); Projection proj = map.getProjection(); Point startPoint = proj.toScreenLocation(marker.getPosition()); final LatLng startLatLng = proj.fromScreenLocation(startPoint); final

Show wind direction on Google Maps

时间秒杀一切 提交于 2019-11-27 19:32:45
I calculated the wind direction and now I want to show the wind direction pointing to 144 degrees (on compass). How can I show this arrow on Google Maps? In order to show an arrow over a google map you can create a Rich Marker that embed an image using the google-maps-utility-library-v3 , Next apply a rotation in degree to the image element with css3 tranformations. In example : // content element of a rich marker var richMarkerContent = document.createElement('div'); // arrow image var arrowImage = new Image(); arrowImage.src = 'http://www.openclipart.org/image/250px/' + 'svg_to_png/Anonymous

Google maps v2 doesn't showing after publishing in play market

偶尔善良 提交于 2019-11-27 19:24:58
问题 i have some problem, my app works fine, but when i load it in Play market, maps does not works correctly. I make next: Get SHA1 keytool -list -v -keystore C:\User\Name/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android In Google console i create API KEY. SHA1;com.kostya.app Rigth click on project - Android tools - Export signed application packuage Create new keystore and new *.apk file. Load it into market. Where is my mistake? I read this article. Together we

Embed Google Maps on page without overriding iPhone scroll behavior

可紊 提交于 2019-11-27 19:11:45
I'm working on optimizing a site for mobile. We have a Location page that includes info about a location and a map of the location via the Google Maps API. (v2 - I know it's deprecated but I haven't justified the time to upgrade, "if it ain't broke..") I want to use a single column layout with basic information followed by the map followed by more information. Now when I use my finger to scroll down the mobile page on an iPhone, once I get to the map, the page scrolling is overridden and the map starts panning. The only way for me to scroll farther down the page is to put my finger above or