Questions tagged [mapfragment]

The Android Fragment that represents a Map component in an Android app.

240 questions
0
votes
2 answers

Google Map not load in Android its give Errors

I am first time working with android map V2. I was added all Require Permission in AndroidManifest.xml file and also add my map key. I was import external map library and also install google play service in Emulator. my application cannot load…
prakash ubhadiya
  • 1,242
  • 1
  • 12
  • 24
0
votes
1 answer

How to use SupportMapFragment instead of MapFragment

I am using Xamarin and am learning the SimpleMapDemo sample code for creating a Google Maps application. The following variable is declared: private MapFragment _mapFragment; How can I change this variable to be SupportMapFragment instead of…
0
votes
1 answer

Android Fragment: how to save an instance

Hi I have a Fragment that loads a map fragment and fetches different data from a server. I want to save the state/instance of my fragments without destroying and replacing it. I do know about onSaveInstanceState(Bundle outState) but I did not…
Estarossa
  • 585
  • 4
  • 21
0
votes
1 answer

Map Fragment OnResume function code

In Xamarin, I am modifying a class that was a standard Activity but is now a Map Fragment. The inherited Map Fragment is of type Android.Support.V4.App.Fragment. Here is the previous code: protected override void OnPause() { base.OnPause(); …
Garry
  • 1,251
  • 9
  • 25
  • 45
0
votes
0 answers

Android: map fragment and sliding menu

so I m trying to add a sliding menu to a mapfragment activity that is displaying a google map. I have found some libraries for sliding menu on github but it's hard to use. Thus, I am wondering if there a a more feasible way (tutorials...) to add a…
Estarossa
  • 585
  • 4
  • 21
0
votes
1 answer

Start Activity with MapFragment from another Activity

I developed an application and I need to start a new activity from my menu with a simple button. I made several tests and noticed that if I set the intent-filter of Activity that contains the MapFragment as follows:
0
votes
2 answers

NullPointerException when getting GoogleMap from MapFragment

null pointer exception when getting android google maps where is the error ? MapActivity.java : @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_map); …
0
votes
2 answers

Google Maps is not woking

I am trying to show google map in my application, but it displays small squares boxes screen instead of google maps Here is my Mainactivity public class MainActivity extends FragmentActivity { private static final int GPS_ERRORDIALOG_REQUEST =…
FAISAL
  • 459
  • 8
  • 22
0
votes
1 answer

MapFragment suddenly crashed my previously run OK after updating to kitkat sdk

My MapFragment suddenly crash my googlemap app. This happen after…
Hanis
  • 309
  • 1
  • 6
  • 15
0
votes
0 answers

MapFragment and the dreaded "Duplicate id" exception - how to use MapFragment in an AlertDialog

So, I have the error described in this post: Duplicate ID, tag null, or parent id with another fragment for com.google.android.gms.maps.MapFragment I have searched SO and found several explainations on why I get this…
Ted
  • 19,727
  • 35
  • 96
  • 154
0
votes
4 answers

Google Map is not getting loaded after signing the application ? How to solve this?

Hello everyone I created an Android application which displays a google map and sets markers on the google map. The application is working fine until I sign that application. My problem is after signing the application google map is not being…
0
votes
0 answers

Align a MapFragment to bottom inside scrollview when there is enough space

In app, I want to embed a MapFragment in a ScrollView and put a custom fragment above a SupportMapFragment Works like a charm on smaller screens, but on a large enough display, the map is not taking up all the size it could. Instead of the fixed…
Loy
  • 103
  • 11
0
votes
1 answer

Hide Show Activities in android

I have 3 activities, each with map fragments. Now I was wondering how I could use hide and show to allow them to stay loaded in the background once the activity is triggered. Essentially the user starts on Homescreen, loads up rss feed and map…
prophetz
  • 107
  • 2
  • 10
0
votes
1 answer

android (Support)MapFragment getMap() return null

I allready read a lot topics about this problem but nothing helped. So I want to operate on a GoogleMap in a SupportMapFragment. In the FragmentActivity I initialized the map in the onCreate Method @Override public void onCreate(Bundle…
Forke
  • 358
  • 3
  • 11
0
votes
2 answers

MapFragment : Set Minimum zoom

I'm currently developing an android application which uses the Google Maps API V2. As you can see in the topic title, the Map class extends MapFragment. What I want to do is set a minimum zoom so that, we could see all the continents on the screen…
ChAndroid
  • 35
  • 8