The Android Fragment that represents a Map component in an Android app.
Questions tagged [mapfragment]
240 questions
0
votes
2 answers
NulPointerException at maps.y.p.onResume(Unknown Source) on implementing fragments for OSMDroid
I am currently trying to transfer my OSMDroid Map Activity into Fragments. It seems that everything has been set correctly but I'm getting this weird NullPointerException which I'm unsure of solving.
02-20 23:59:36.140: E/AndroidRuntime(970): FATAL…

lyk
- 1,578
- 5
- 25
- 49
0
votes
1 answer
MapFragment: how can I use the MapActivity functions to draw markers?
The problem:
I need to put a MapView in a ViewPager
More informations:
As the Mapview will be static (clickable="false") I won't have any issue with scrolling, or touch events. The ViewPager will get every touch and that's it.
What I have…

Waza_Be
- 39,407
- 49
- 186
- 260
-1
votes
1 answer
MapFragment in tabbed activity getting null value
I want to load map fragment in a tabbed activity without showing it so I can start map fragment later without delay.
I have tried using getFragmentManager().findFragmentbyId() and getSupportFragmentManager().findFragmentbyId() none worked.
I have…

lcukerd
- 31
- 5
-1
votes
2 answers
how to call interface from TouchableWrapper class in android
I need to call interface while double tap on google mapFragment.
I am able to detect double tap on map now.
This is my TouchableWrapper class
public class TouchableWrapper extends FrameLayout {
GestureDetectorCompat mGestureDetector;
public…

sunil
- 796
- 1
- 8
- 28
-1
votes
2 answers
android mapfragment programmatically
I wish to insert a Android map v2 into a fragment, but my restiction is that I can't use .xml files. The problem appears when I try to instantiate the MapFragment. Here is the code:
public class LocationFragment extends Fragment{
private static…

Viherbar
- 239
- 3
- 13
-1
votes
3 answers
Current Location program in android not working
all i have simple android application for finding current location ,I have tried some code a sbelow,But its not working.It only shows my static markers only,It doesn't show my vurrent Location marker,So please suggest me for…

jigar
- 1,571
- 6
- 23
- 46
-1
votes
1 answer
2 Approaches on Google Maps not working
I have tried two approaches to implement Google maps on android and both are not working.
1st Approach - I implemented maps using fragments (com.google.android.gms.maps.MapFragment). In this approach I get an error and the it asks me to UPDATE…

Manik
- 231
- 1
- 2
- 3
-1
votes
2 answers
MapFragments with offline maps?
I'm working on an app that shows the maps of only a single city. i'm working with offline maps for this app. For this reason is it possible to use MapFragments with offline maps?? Can anybody guide me in this regard??

Bhagirath
- 161
- 3
- 14
-1
votes
1 answer
google maps v2 fragment nullpointer
I am trying to work with google maps API V2 in my android project, the problem is when I use the map that I got from the layout, I get NullPointerException. I spent hours looking on the internet but I could't find anything. I'm sorry if it has been…

Pivoine
- 29
- 6
-1
votes
1 answer
Google Map Android API v2 getMap() error
Hi I'm trying to implement Google Maps display in my app using Google Map Android API v2, and I am trying to follow the solution in here.
Codes seem to be okay except when I tried this part:
public class MapFragment extends SherlockMapFragment {
…

lyk
- 1,578
- 5
- 25
- 49
-2
votes
2 answers
Having issues moving from fragmentManager/MapFragment to supportfragmentManager/SupportMapFragment
SO I'm able to use MapFragment no issue but when I change it to supportMapFragment it bails out. with the below error. not sure what I'm doing wrong that one works and the other doesn't. The reason I need the support one is that I can't remove the…

BostonMacOSX
- 1,369
- 2
- 17
- 38
-2
votes
1 answer
Can I add a mapfragment into a listView
I want to create a list of cards each having a map fragment is that's possible ?

Sherif Makhlouf
- 3
- 1
-3
votes
1 answer
NullPointerException in MapFragment; GoogleMap in FragmentActivity
I have an activity in my app which shows Google Map and there is some other functionality to select the location. The activity is named as MapActivity and it extends FragmentActivity.
public class MapActivity extends FragmentActivity implements…

Aashish Gulabani
- 141
- 6
- 24
-3
votes
2 answers
Service and Main activity communication
I am having an activity, which populates a frame layout and a MapFragment on top of it. The map markers should be updated every few minutes, so I thought I may use a Service to generate http requests.
The question is, how can this service (which is…

Tomb
- 71
- 1
- 9
-3
votes
2 answers
Getting error in my android project. Android Version 19,
This is the LogCat:
08-04 01:21:52.616: D/AndroidRuntime(6835): Shutting down VM
08-04 01:21:52.631: E/AndroidRuntime(6835): FATAL EXCEPTION: main
08-04 01:21:52.631: E/AndroidRuntime(6835): Process: com.vape.main, PID: 6835
08-04 01:21:52.631:…

Shreyas K C
- 140
- 6