google-maps-android-api-2

Android: Google Maps not displaying

匆匆过客 提交于 2019-11-29 06:26:17
I'm trying to get a google map to display. I can see the background (light gray background, small tiles, Google logo in the lower left), so I know that I'm close. However, there is no actual map displayed. In the LogCat, I see this message repeating over and over: 05-14 13:28:17.926: W/System.err(27458): at android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702) I'm using Google maps api 2 with a tethered phone for testing that is running 2.3.4. Anyone know what might be causing this? Thanks! package com

Android - Google Maps API v2 - NoClassDefFoundError

假如想象 提交于 2019-11-29 05:44:14
I try to run Google Maps with Intellij IDEA 12. I already tried advices: Embedding google maps android v2 in android Google Maps Android API v2 Authorization failure Unable instantiate android.gms.maps.MapFragment Google Maps Android API gives a NoClassDefFoundError and so on. But unfortunately that doesn't work for me. My configuration: 1) real device htc wildefire s, android 2.3.5 2) 3) AndroidManifest.xml : <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="ru.ergeslab.TransportScheduleYaroslavl" android:installLocation="auto" android:versionCode="1" android

Google Maps Android API v2 SupportMapFragment memory leak

瘦欲@ 提交于 2019-11-29 05:43:13
Using 2 simple activities. First Activity which only holds a button to start the 2nd Activity which holds the map: Main Activity: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); } public void goToMap(View view){ //This is just the onClick method for the button Intent intent=new Intent( this, BigMapTest.class); startActivity(intent); } The map activity: public class BigMapTest extends FragmentActivity { SupportMapFragment mapFragment; GoogleMap map; @Override

Android MapView getMap() returns null

可紊 提交于 2019-11-29 05:39:06
MapView 's getMap() method can return null. I know this is an intended behavior by Google. Can someone provide a definitive description as to when and under which circumstances the getMap() method returns null? I know that if Google Services are unavailable on the given device, getMap() will return null. This eventuality is relatively well documented. I'm more concerned with the vague other case where even when Google Services are installed on a device, getMap() can still return null. My assumption up to this point is that there is some initialization of the underlying maps system, during

Android Google Maps v2 - Add object to marker

大城市里の小女人 提交于 2019-11-29 05:34:00
问题 How can we add an object to a marker in the new Google Maps Android API v2 ? So if we click on the InfoWindow , we can do something with the object? public void addSpotOnMap(Spot spot) { getMap().addMarker(new MarkerOptions() .position(new LatLng(spot.getParseGeoPoint().getLatitude(), spot.getParseGeoPoint().getLongitude())) .title(spot.getName()) .snippet(spot.getCategory()) .draggable(false)); } This sets the location, title and snippet for the object. But I want to be able to go to another

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

老子叫甜甜 提交于 2019-11-29 04:52:55
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: 5077000 07-08 12:54:39.907: I/dalvikvm(25749): Could not find method guj.a, referenced from method gqi

Error inflating class fragment: Duplicate id , tag null, or parent id with another fragment

我只是一个虾纸丫 提交于 2019-11-29 04:21:40
I am trying to make an app in which when user clicks on item in ListView, the GoogleMaps is displayed. I have tried following code: ShowPlacesActivity.java public class ShowPlaceActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_show_place); if (savedInstanceState == null) { getFragmentManager().beginTransaction() .add(R.id.container_showplaces, new PlaceholderFragment()) .commit(); } getActionBar().setSubtitle(getString(R.string.activity_showplaces_subtitle)); } } activity_show_place

GIF type animation for marker in google map api ANDROID

你说的曾经没有我的故事 提交于 2019-11-29 03:59:42
I want to achieve a marker animation such as GIF animation. I got two images which should be blinking simultaneously. I found nothing which can acheive this in android. I am trying to do is , creating a handler which run every 1 second , and I am trying to set icon for marker. But it doesnt work. Please guide me in right direction. my code as of now is as follows. Handler handler = new Handler(); Boolean marker_color_bool = true; //adding marker and sending the marker instance to marker_animation() method where handler is called. MarkerOptions marker = new MarkerOptions() .title(delivery

Recycle Android Maps V2 SupportMapFragment when rotating

泄露秘密 提交于 2019-11-29 03:28:47
问题 I am looking to improve the performance of the SupportMapFragment when the device is rotated. It seems as if the fragment must be recreated. I am not sure of this, however when the device is rotated the map tiles must be reloaded. It would make sense from a performance perspective to have the entire mapfragment retained and reused without having to re-instantiate the fragment. Any insight into this would be appreciated. I am declaring the SupportMapFragment in xml and using the

navigation drawer google maps v2 , map blocking drawer

与世无争的帅哥 提交于 2019-11-29 02:51:21
问题 I have this problem when opening drawer on gingerbread and behind is google map v2. Map that should be on screen behind gets on top of everything. Now I could bypass this by hiding map when drawer opens and show it when closes but I'm looking for more elegant solution if someone came up with any? 回答1: There is a bug with google maps api v2 and black space. Maybe you have got similar problem. For solutions look here: https://github.com/jfeinstein10/SlidingMenu/issues/228 and here: https:/