google-maps-android-api-2

Android Google Maps API v2 - NoSuchFieldError

我的梦境 提交于 2019-12-13 07:17:09
问题 I am working on a project using Google Maps v2 for Android and I am getting a NoSuchFieldError while instantiating the Google map fragment on a rooted HTC Desire HD. Afaik, the issue should not be caused by Google Play Services not being installed on the device (event though they are and other applications using Google Maps v2 are working). I have tried making a check to see if Google Play Services library is installed on the device (by calling GooglePlayServicesUtil

google map showing blank in genymotion

£可爱£侵袭症+ 提交于 2019-12-13 04:37:56
问题 I am using Google Nexus 4.2.2 - with Google API on Genymotion. The google maps fragment is coming up empty. I have registered with the API and providing the key in the manifest file. Thanks for your help. Layout: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MapsTestActivity" > <fragment android:id="@+id/map" android:name="com

Android: How to check that whether i reach/near my Destination?

北城余情 提交于 2019-12-13 04:35:57
问题 I am developing an application that wakeup to you when you reach/near your destination and send you notification like Alarm. Is it any way whether i check continuously user's current location and when user is near/reach destination? If it is possible than please give me sample/tutorial so that i can implement it easily. Till now,i implement below code that indicates "Notification". public class ProximityReceiver extends BroadcastReceiver { private static final int ALARM_DURATION = 6000;

How to get real time current location update as we walk

雨燕双飞 提交于 2019-12-13 03:48:24
问题 I want to discuss if there is possibility of getting real time current location update as we move, I tried with FusedLocationProviderClient to request for current location update every 2 minutes What can we do to achieve this, implement detectActivity for walk and request current location update every 2 minutes or less in it? or there is on location change listener thing in FusedLocationProviderClient? so that we can listen for if there is change in location and get latlng in real time and

at com.projects.fragments.MapFragment.refetch(MapFragment.java:207)

孤人 提交于 2019-12-13 03:42:07
问题 I am getting error at: com.projects.fragments.MapFragment.onMapReady(MapFragment.java:200) at com.projects.fragments.MapFragment.onMapReady(MapFragment.java:200) at com.google.android.gms.maps.SupportMapFragment$zza$1.zza(Unknown Source) at com.google.android.gms.maps.internal.zzo$zza.onTransact(Unknown Source) Occurs in run time this the Mapfragment class package com.projects.fragments; import android.annotation.SuppressLint; import android.content.ComponentName; import android.content

How to change language of placepicker in android?

牧云@^-^@ 提交于 2019-12-13 02:34:35
问题 is there any way to change language of place picker without change phone's language ? in this link use change phone's language method : Change title language PlacePicker 回答1: There is no direct way of changing the language through the Google Place Picker API. What you can do is to force the locale of the app activity since changing the language of the phone does work. A notable SO post discussing this can be found here Hope this helps. 来源: https://stackoverflow.com/questions/35720426/how-to

Show dynamically to InfoWindow Googlemap V2

泪湿孤枕 提交于 2019-12-13 00:28:14
问题 I'm developing a travel app. On Google map API V2 feature, I want each InfoWindow have an different image. I've override WindowInfoAdapter for custom title and detail text. public class MyInfoWindowAdapter implements InfoWindowAdapter { private final View mView; public MyInfoWindowAdapter(Activity activity) { mView = activity.getLayoutInflater().inflate(R.layout.custom_info_window, null); } @Override public View getInfoContents(Marker marker){ String title = marker.getTitle(); final String

Inflating Google Maps v2 fragment causes ClassNotFoundException

余生长醉 提交于 2019-12-13 00:24:09
问题 Sorry i am posting this question on. I have refered so many links. But still not able to solve the issue I have linked the google-play-services_lib service. Set the property to Google Inc. Get the API_KEY from google console. This is my Manifest.xml: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.abc.xyz" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16

Android Maps API2 release key working locally but not through Play Store

本小妞迷上赌 提交于 2019-12-12 21:50:23
问题 I am making an app that uses the Google Maps API V2. When building the App in debug mode, using the debug key the map gets displayed fine. The same is true, when I export the app using Eclipses export function and my production key, installing the app locally with: adb install com.package.name However when I publish the apk in the Play Store (as an alpha test) and download it on my device, no map is displayed, making me suspect that something goes wrong with the key. I registered the

how to detect when TileOverlay has completed downloading tiles?

不想你离开。 提交于 2019-12-12 17:04:55
问题 I'm using multiple TileOverlay objects as "frames" for my map animation. When an TileOverlay is made visible (via TileOverlay.setVisible(true)), it will start downloading the tiles. How can I detect when the tiles for the overlay have been downloaded and displayed? 回答1: It's not possible to know from the API if all visible Tiles are downloaded and displayed. If you want to know when a single Tile is downloaded, you may put some code before return in TileProvider.getTile . This way you can