google-maps-android-api-2

Google Map is not loaded for the app downloaded from the Play Store

强颜欢笑 提交于 2019-12-09 01:48:36
问题 I use Google Map in my app. When I install the app from my pc using Eclipse, the Google Map is loaded properly. Now I uploaded the app to the Google Play Store for distribution. For the app installed from the Play Store, Google Map is not loaded. What is wrong or which step am I missing? EDIT 1: Now I get the SHA1 fingerprint from the release keystore. Then I go to the Google APIs Console and using exiting project and that fingerprint, I created new Android API Key. That new API key is

Android Google Maps V2 Caused by: java.lang.ClassCastException: com.google.android.gms.maps.SupportMapFragment cannot be cast to android.app.Fragment

谁说我不能喝 提交于 2019-12-08 20:52:35
I have this in my class import android.os.Bundle; import android.support.v4.app.FragmentActivity; import com.coffeeandcookies.ushuaiamovil.R; public class LayMapa2 extends FragmentActivity { @Override protected void onCreate(Bundle arg0) { setContentView(R.layout.lay_mapa2); super.onCreate(arg0); } } This in my 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" android:name="com.google.android.gms.maps.SupportMapFragment" /> This in my

Performance benchmark of native android map vs webview map, what parameters can be included in the benchmark

落爺英雄遲暮 提交于 2019-12-08 19:52:28
I am trying to compare native google maps (v2) vs the embeddable HTML version encapsulated in a webview on android. While it's pretty evident that the native maps are smoother and faster, I must prove that somehow. I have been searching on the internet for quite some time and did not seem to find any existing benchmarks. Does anybody know someone who actually done something similar? I am already thinking of creating such benchmark of my own, but how can the performance actually be measured? My ideas so far are: Measure rendering of different number of markers, polylines, etc... Measure map

Google Maps v2 MapFragment is extremely laggy on returning from the backstack

淺唱寂寞╮ 提交于 2019-12-08 17:30:17
问题 I'm working on an app that makes use of a v2 MapFragment , and I'm running into very strange behavior. I've created a subclass of MapFragment to handle some custom behavior (handling Marker s, tweaking the menu options, etc.), and on first load it all works beautifully. I then embed a new fragment into my activity, pushing the custom MapFragment onto the backstack. When I return the map from the backstack, though, things get weird; panning the map becomes extremely laggy (we're talking ~1 FPS

Using other account when uploading signed apk in google play store

僤鯓⒐⒋嵵緔 提交于 2019-12-08 15:20:54
Their is no bug with regard to the maps. I already signed the apk with release keystore , the API Keys are registered in my account It perfectly works in any devices. What's the problem is when it is uploaded with the client account in google play store and downloaded in their device, the map displays white. Question: 1.Does it affect the application if the API keys are registered to my account and the one who upload the app is not my account ? Answer: The API key is associated with the apk package and it's keystore and not a user account. First you need to create a keystore for you app. Refer

Google Maps Android API v2, how to remove Polylines from the map?

£可爱£侵袭症+ 提交于 2019-12-08 14:46:50
问题 I am trying to remove previously added Polyline and redraw new Polyline when the location has been changed. I tried both this.routeToDestination.setPoints(pointsToDestination) and this.routeToDestination.remove() but neither of them worked. I followed How to draw a dynamic line (route) with Google Maps Android API v2 but could not resolved the issue @Override public void onResume() { super.onResume(); routeToDestination = mMap.addPolyline(new PolylineOptions() .add(new LatLng(location

MapView in android application

99封情书 提交于 2019-12-08 13:36:15
问题 I am trying include google map in my android application. I gone through this procedure to get the Map API key. After getting the key i wrote the following code to display the map in my application. My Manifest file <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.mymap" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="11" android:targetSdkVersion="17" /> <uses-permission

Get Custom class data information on Map V2 PopupClick event in android

假如想象 提交于 2019-12-08 13:22:08
问题 hello friends my java file as below public class MainActivity extends FragmentActivity { GoogleMap googleMap; final int RQS_GooglePlayServices = 1; Double lat; Double lng; Marker marker; LatLng coordinate; private LocationManager locationManager; private String provider; Marker startPerc; AutoCompleteTextView mAutoCompleteTextViewAddress; CommonMethods mCommonMethods; String getsearchingAddress; Geocoder mGeocoder; List<Address> list; int maxResult = 10; String addressList[]; Intent mIntent;

Unable to add icon to Marker , Map V2 Android

流过昼夜 提交于 2019-12-08 12:56:42
问题 Here is how i am adding marker to map map.addMarker(new MarkerOptions() .position(model.getLatLongfromService()) .title(model.getCoupon_name()) .snippet(model.getCoupon_id()) .icon(BitmapDescriptorFactory.fromFile(DataHolder.imageUrl + model.getCoupon_image()))); I am getting coupon_image in this format : http://www.xyz.com/coupon21.jpg** I am getting this error when u run my app. java.lang.IllegalArgumentException: File http://test.xyz.de/uploads/company_logo/sample-logo-110x60.jpg contains

Zoom to the closest level that still shows all markers, including the blue MyLocation marker

旧街凉风 提交于 2019-12-08 12:22:26
问题 I would like to zoom and position my GoogleMap such that all markers, including the blue MyLocation marker, are visible. This SO question shows how to do this for all manually added markers, but I am not sure how to get a handle to the MyLocation marker, which is automatically added after calling setMyLocationEnabled(true) , in order to pass it to the LatLngBounds.Builder . I have tried using GoogleMap.getMyLocation() , and I am calling it in onPostCreate , after the map has been fully