The Android Fragment that represents a Map component in an Android app.
Questions tagged [mapfragment]
240 questions
2
votes
2 answers
MapFragment and Mapview API v2
I have a problem , I can use a MapView and I see the map correctly :

sdelatorre
- 67
- 1
- 11
2
votes
3 answers
How to use mapfragment in a fragment
Mainly i got a FragmentActivity with a drop down menu that once you choose an item from that menu it makes my private class that extends Fragment to show every time other things on the map it self
Now the problem is that when i make the line inside…

Nir Kigelman
- 121
- 3
- 6
2
votes
1 answer
Getting a MapFragment to work in an AlertDialog
I want to get a MapFragment displayed inside an AlertDialog.
I ended up asking this after reading the following questions [observations between brackets are my results, someone may have got them working but I'm not one to dismiss my amazing talent…

Emiliano De Santis
- 197
- 1
- 3
- 15
2
votes
2 answers
(Supported)MapFragment lifecycle calls
I am just starting to use MapFragment (or actually SupportedMapFragment as I'm targeting API 8). I never used MapView (V1) in the past.
What I notice is that on MapView one was told to make the lifecycle calls (onPause() etc) from the Activity, but…

nmw01223
- 1,611
- 3
- 23
- 40
2
votes
3 answers
Mapview in google-api-v2 with rounded corners in android
I am writing an app in android using MapFragment, so i want that the corners of the mapview rounded i create a shape in a xml file and set the shape as a background of the map but i didn't got the result i want.
the corners of the map are not…

Adil
- 69
- 1
- 6
2
votes
1 answer
Google Maps API V2 android app on API level 8 up to 17
I am working with the Google maps API V2 and it is going fine. i have a 2.2.2 android device wich i use to debug my app.
now i just got a Galaxy Note 2, and when i try to debug on that device the app imidiatly crashed "project has stopped…

Michael
- 233
- 1
- 4
- 11
2
votes
2 answers
MapFragment Styled as Dialog causes TextView to be transparent
Here's the setup:
I'm constructing and displaying Activities that are styled as centered Dialogs. This is to show hierarchical content that shouldn't be full-screen on the device.
One type of content is a map. So i've successfully loaded a…

Dan Byers
- 185
- 1
- 2
- 10
2
votes
1 answer
MapFragment in DialogFragment
Is there a way on use a MapFragment, or a SupportMapFragment, extending a DialogFragment to be showed as a popup window, the same way as used to display a DatePicker?
I want to build it to let the user to select a LatLng from the map. I don't want…

Enio Carvalho
- 153
- 11
1
vote
0 answers
Black screen on MapFragment
I call a MapActivity with a startActivity(intent) after an async task ends. When doing so, I get the basic view for my MainActivity then a black screen when the MapFragment sims to be launching.
I've got no error in the logcat.
I'm running it on an…

MrRog85
- 121
- 1
- 9
1
vote
1 answer
Google Maps and MapFragment and getMapAsync
how's it going?
I'm working on an android app that is based on Google maps and location services. I know a little bit about Google Maps, which I have learned on this project, but there are several things about GoogleMaps I dont know...
In my main…

Hideyoshi
- 81
- 3
- 12
1
vote
0 answers
Android Map Fragment Inconsistent Camera/Markers
My map fragment seems to be having some issues. I'm calling it in my 2nd activity from the first which is my custom adapter set to a recyclerView.
I am adding 2 markers to the map from coordinates that change depending on the item clicked in the…

glokul
- 77
- 1
- 2
- 10
1
vote
1 answer
NullPointerException : Attempt to invoke virtual method 'void com.google.android.gms.maps.MapFragment.getMapAsync
I'm using com.google.android.gms:play-services-maps:11.0.2 version of Google Map Service. When trying to call the below, I get the following error:
java.lang.NullPointerException: Attempt to invoke virtual method
…

Randy Wiratama
- 13
- 1
- 5
1
vote
0 answers
Initialisation of MapFragment in Activity Failing
I use the following XML code to create a MapFragment:

Jayesh Babu
- 1,389
- 2
- 20
- 34
1
vote
0 answers
MapFragment and surfaceView play video, respectively, on the two fragments, add to the same Activity to switch
Com.google.android.gms.maps.MapFragment is placed in a fragment, and the surfaceView plays the video in another fragment.
The two fragments are in the same Activity and click on the lower right corner to switch.
When the map is full screen, click…

ouyang.yi
- 11
- 2
1
vote
1 answer
MapFragment rotate gesture not working - how to determine it programmatically
Google Maps android app allows rotating of the map using two fingers. This works on most phones I encountered. However it does not on Samsung Galaxy J3 (low-end phone, no magnetometer).
I assume that without magnetometer, authors of map service…

MateuszL
- 2,751
- 25
- 38