google-maps-android-api-2

Could not find class 'com.google.android.gms.location.internal.ParcelableGeofence referenced from method glt.a

我的未来我决定 提交于 2019-12-29 06:26:10
问题 I have an app where homepage is map. Do not know why i am getting this error and along with this error Could not find class 'gpr', referenced from method gps.a I have updated eclipse so i tried to change to API key with new SHA1 fingerprint. But that does not work. My app is to show current location when you open the app. It just landed into whole map but in LOG cat i get these error. Here is my Logcat `07-08 12:54:39.897: I/Google Maps Android API(25749): Google Play services client version:

Convert Android App that uses maps API V1 to Maps Android API V2

泪湿孤枕 提交于 2019-12-29 05:35:08
问题 I have an android app that uses the old Maps API, it's now deprecated! What steps I should take to make my app works with the new API. I'm using also Distance Matrix API and Google Directions API. my code will work with it ?! 回答1: You can take a look at this blog post I wrote on how to create a Map application using: Google Map API V2 guide Basically the changes you would have to make are 1. Replace the MapView object with a MapFragment or SupportMapFragment object (depending on the target

Convert Android App that uses maps API V1 to Maps Android API V2

做~自己de王妃 提交于 2019-12-29 05:35:04
问题 I have an android app that uses the old Maps API, it's now deprecated! What steps I should take to make my app works with the new API. I'm using also Distance Matrix API and Google Directions API. my code will work with it ?! 回答1: You can take a look at this blog post I wrote on how to create a Map application using: Google Map API V2 guide Basically the changes you would have to make are 1. Replace the MapView object with a MapFragment or SupportMapFragment object (depending on the target

How to get image in infoWindow on Google Maps with picasso - Android

一世执手 提交于 2019-12-29 01:35:08
问题 I have created an app that implements a MapsView. And when i click the marker, it will show me the info window where the data is retrieved from the database by using picasso. It works fine, but the problem is that the image in the info window not shows me the image that i needed, it still shows me the placeholder image. But when i click the map and click again to the marker, it will shows me the image that i needed. But if i'm not clicking on the map (still clicking the marker), it still

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

隐身守侯 提交于 2019-12-28 05:46:06
问题 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

Android Google Maps V2 authentication error

江枫思渺然 提交于 2019-12-28 04:28:18
问题 I get this message in logCat when I attempt to load a supportMapFragment: Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors). I believe my key is valid because it works on one phone (galaxy s), but does not work for an older phone (optimus v) and newer phone (galaxy s3). I have all necessary permissions in the manifest and my network connection is just fine, so not sure why it would work on one phone by not

Setting a LongClickListener on a map Marker

余生颓废 提交于 2019-12-28 04:14:25
问题 is there a way to set a longClickListsner on a marker on google maps v2? I want to have the user long press on the marker and have a dialog show with options to delete or view information. Can this be done? 回答1: I have another proposition. First i make the marker draggable: mapa.addMarker(new MarkerOptions() ... .setDraggable(true); After you can make a listener setOnMarkerDragListener like this: mapa.setOnMarkerDragListener(new OnMarkerDragListener() { @Override public void onMarkerDragStart

Android Gradle How to build for Android Google APIs 4.2.2 not for Android 4.2.2

◇◆丶佛笑我妖孽 提交于 2019-12-28 04:00:10
问题 Is it possible to build for Android Google APIs SDK instead of the general Android SDK with gradle? I need the Google Maps APIs in my project therefore I need to change the build target I can find only samples with the build version "17" compileSdkVersion 17 buildToolsVersion '17.0.0' Any idea how to do that? 回答1: i figured it out: 1) use the Android SDK Manager and get the Google APIs for the android versions you want (start it from Android Studio, it's seperate from your old sdk manager if

SupportMapFragment does not support AndroidX Fragment

泪湿孤枕 提交于 2019-12-28 03:04:36
问题 import com.google.android.gms.maps.SupportMapFragment; import androidx.fragment.Fragment; ... private SupportMapFragment mMapFragment; ... mMapFragment = (SupportMapFragment) form.getSupportFragmentManager().findFragmentByTag(MAP_FRAGMENT_TAG); Here, the IDE shows an error that androidx.fragment.Fragment cannot cast to SupportMapFragment (which extends android.support.v4.app.Fragment) I'm using the version 15.0.1 of the play-services-maps and version 1.0.0-beta01 of the AndroidX libraries. I

Replace getMap with getMapAsync

若如初见. 提交于 2019-12-27 10:22:15
问题 I want to replace the deprecated getMap Method with getMapAsync , but I didn't use MapFragment but GoogleMap like this: private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_map); try { if(googleMap == null) { googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap(); } googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); googleMap.setMyLocationEnabled(true);