Questions tagged [android-maps-v2]

The new Google Maps Android API v2 allows you to offer interactive, feature-rich maps to users of your Android application.

With the Google Google Maps Android API v2, you can add maps based on Google Maps data to your application. The API automatically handles access to Google Maps servers, data downloading, map display, and response to map gestures. You can also use API calls to add markers, polygons, and overlays to a basic map, and to change the user's view of a particular map area. These objects provide additional information for map locations, and allow user interaction with the map.

Related tags:

1138 questions
0
votes
1 answer

Android GooglePlay LocationClient is null, although initialized in onCreate()

I am working with the Google Play LocationClient. I have initialized it in onCreate() as stated in the docs: mLocationClient = new LocationClient(this, this, this); and I am doing a connect in onStart() mLocationClient.connect(); It works fine in…
MrHill
  • 1,271
  • 3
  • 12
  • 19
0
votes
1 answer

Adding a Google maps on my fragment

I am trying to add a Google Maps in a new fragment. But i get this error : 08-16 16:58:37.334: E/AndroidRuntime(15409): FATAL EXCEPTION: main 08-16 16:58:37.334: E/AndroidRuntime(15409): android.view.InflateException: Binary XML file line #2:…
wawanopoulos
  • 9,614
  • 31
  • 111
  • 166
0
votes
1 answer

android maps v2 api display metro lines overlay

I would like to display metro lines in an Android application. In fact I need to place markers on several stations, and others on coordinates (LatLng). So, I would like to have google maps of Paris (Paris only for now), and stations over it. I've…
sexyslippers69
  • 334
  • 2
  • 9
0
votes
0 answers

App taking too much memory when using Google Map V2 in Android

I am using the Google Map V2 and draw the route between two locations and internet connectivity (calling only webservice) and no background service and thread and receiver. But Still its taking too much memory. Please see the attached picture. Is…
user2601652
  • 467
  • 2
  • 8
  • 26
0
votes
1 answer

Animate map to marker position in onClick method

I found a strange bug in the googleMap v2. When I try to animateCamrea to a marker position inside of the override Marker onClick method it doesn't work. Only moveCamera seems to work in this scenario. Even when I try to animate camera to a random…
0
votes
3 answers

Supportmapfragment inside viewpager

Can anyone provide best working example to use supportmapfragment inside viewpager? I have tried many tutorials but I am not able to implement it. I just need the fragment, and its layout. I know how to setup viewpager. Thanks in advance.
Basim Sherif
  • 5,384
  • 7
  • 48
  • 90
0
votes
1 answer

NPE on SupportMapFragment

I successfully built a map-fragment with android maps v2 and it works fine on my smartphone. now i plugged in my tablet and i get a NPE when i try to launch the map-activity. I am totally clueless at the moment; not even knowing what the source of…
0
votes
1 answer

How to call event depening upon latitide and longitude?

i am developing a location base application. which determines the latitude and longitude. now i want to compare it with same values and if matched i want to call event. i try it in many ways but unable to do it. kindly give an idea and code…
user2590541
  • 522
  • 3
  • 7
  • 19
0
votes
1 answer

Android Update Current Location

So here is my method for getting the user saved location and then move camera to that location: private void updatePlaces(){ locMan = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location lastLoc =…
0
votes
1 answer

maps api v2 android. Stopped working

I've had this app I made on my phone for a couple of weeks and it has been working fine until today. Everything in the console checks out fine except I get this: 08-07 10:31:03.110: I/Google Maps Android API(11207): Failed to contact Google servers.…
johnsonjp34
  • 3,139
  • 5
  • 22
  • 48
0
votes
1 answer

Google Maps API v2 displaying maps only on one device

We are using the same API key in the manifest file, which is obtained from the the SHA-1 fingerprint but it is displaying map only on one device(the first device to run it) and not on other devices. We are also using FragmentActivity. So what could…
0
votes
1 answer

resource ID R.id.map is added automatically to the Android project when you build the layout file

Hi i am working on map application in which resource ID R.id.map should added automatically to the Android project when you build the layout file. but it giving error and not resolving it automatically. how to resolve it. thanks mMap =…
user2590541
  • 522
  • 3
  • 7
  • 19
0
votes
1 answer

Caused by: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0

MainActivity.java package com.project.locationinfofinder; import java.util.List; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnClickListener; import…
mirroroftruth
  • 155
  • 1
  • 3
  • 12
0
votes
1 answer

Google Maps API v2 not loading... worked fine yesterday

I know this has been an asked and reasked question but however i get this strange behaviour. No crashes but the map is not loading anymore. I am trying to use Google Maps for my Android application. I managed to load my map yesterday but today when…
Adrian Olar
  • 2,883
  • 4
  • 35
  • 63
0
votes
2 answers

Draw path traced by device using maps api v2

I am developing an android application to trace the device movement.I am able to get the current location but how can i draw the route with set of points collected during trip
sneha
  • 39
  • 4