Questions tagged [mapfragment]

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

240 questions
4
votes
0 answers

Cannot replace fragment inside tab with another fragment

I am working on Android app which has 4 tabs in action bar (main_activity.xml). In one tab, i would call it MapListFragment (map_list_fragment.xml), i have to show two different fragments (list and map view representation of some data). All other…
4
votes
2 answers

SupportMapFragment vs MapFragment performance-wise

Are there any differences between SupportMapFragment and MapFragment? In the reference it says that you should only use MapFragment when you target Android API level 12 and higher, but are there any other differences? Is one of them faster?
4
votes
1 answer

java.lang.IllegalStateException: Activity has been destroyed -- Android fragment

I have this fragment in order to present a map. When i try to get in the fragment for second time , i get this error: 10-09 19:40:34.050: E/AndroidRuntime(21859): FATAL EXCEPTION: main 10-09 19:40:34.050: E/AndroidRuntime(21859):…
menu_on_top
  • 2,613
  • 14
  • 44
  • 71
4
votes
2 answers

Android: MapFragment not moving in an animation

I have a view that has a MapFragment in it My mainViewPanel looks something like…
Drew LeSueur
  • 19,185
  • 29
  • 89
  • 106
4
votes
4 answers

Android SupportMapFragment Exception Error

I am trying to use the new Google Play Services Lib and embbed Maps in side the Maps Fragment as below PlaceMapsFragment.java public class PlaceMapsFragment extends SupportMapFragment { private GoogleMap mMap; private LatLng mPosFija; …
3
votes
3 answers

SlidingUp panel in map fragment similar to google maps

I am using this for slide up layout in my map fragment but my app just crashing again and again and I don't understand what's happening. In bug report it just saying Binary XML file line #34 Binary XML file line #34: "Error inflating class…
Sakar Mehra
  • 89
  • 1
  • 11
3
votes
2 answers

Android 4.2.2 Map Fragment Issue

I have a map with toolbar and a autocomplete search bar in coordinate layout . Everything works fine in Android version above 4.x but in Android 4.2.2 , shows only map . The toolbar and autocomplete textview is not showing . Please help me to…
3
votes
0 answers

How to handle back-stack for Map fragment used in Fragment - Android

I have a Map fragment used in my layout, and the layout is inflated to the class extending Fragment. So I have 2 fragment now The Layout The Mapfragment On the App launch I launch this fragment, then on Button click I launch another…
Trideep
  • 396
  • 1
  • 2
  • 15
3
votes
1 answer

Null reference exception when using CameraUpdateFactory with MapFragment in an Android FragmentActivity

this is my first post and I would like to do a self Q&A here. :) When embedding a MapFragment (from Google Maps Android API v2) to an fragment activity, I encountered an internal Google Maps Android API null reference exception with the following…
3
votes
3 answers

android xamarin google MapFragment.Map is null

in Xamarin android, creating MapFragment, the code shows map, but mapFragment.Map is always null and I can't set map type code: var mapFragment = MapFragment.NewInstance (mapOptions); FragmentTransaction tx =…
3
votes
3 answers

Polylines performance issues on GoogleMaps API v2

I'm programming an app for android, in which i have to represent certain block facades. For this purpose, i draw a polyline for each relevant block facade (very simple polylines, 2 point lines actually...). Worst case scenario, there could be up to…
3
votes
1 answer

switching android map fragment -- crashed

In my application I have two tab (map and nearby). Both fragments are using map fragment. Here is my map.xml
3
votes
0 answers

Mapfragment InflateException and duplicate ID

I a have a drawer layout that displays different fragments. When I change fragments everything is okay however if I try to access my mapfragment twice it displays the following errors: 04-26 22:55:28.816: E/AndroidRuntime(27576): FATAL EXCEPTION:…
3
votes
1 answer

Toggle between MapFragment and ListFragment

I am creating an App where I want to switch between my CustomMapFragment and a ListFragment. If I start the App and call replaceFragment: private void replaceFragment(final Fragment fragment) { final FragmentManager fragmentManager =…
3
votes
1 answer

Add a View on bottom of Map fragment inside tab

I created an Activity that contains two tabs. One of these tabs is a Map (Google Maps API v2). There is not a layout of Activty (no setContent() is called), since the activity screen is dynamically filled with a Fragment, depending on the selected…
GVillani82
  • 17,196
  • 30
  • 105
  • 172
1 2
3
15 16